* readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.

(get_dynamic_type): Call the above.
This commit is contained in:
Alan Modra 2005-05-11 14:10:59 +00:00
parent 3c9d25f459
commit 7490d522be
2 changed files with 23 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2005-05-11 Alan Modra <amodra@bigpond.net.au>
* readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
(get_dynamic_type): Call the above.
2005-05-07 Nick Clifton <nickc@redhat.com> 2005-05-07 Nick Clifton <nickc@redhat.com>
* Update the address and phone number of the FSF organization in * Update the address and phone number of the FSF organization in
@ -246,7 +251,7 @@
* configure: Regenerate. * configure: Regenerate.
2005-03-15 Daniel Marques <marques@cs.cornell.edu> 2005-03-15 Daniel Marques <marques@cs.cornell.edu>
Nick Clifton <nickc@redhat.com> Nick Clifton <nickc@redhat.com>
* objcopy.c (globalize_specific_list): New linked list of symbols * objcopy.c (globalize_specific_list): New linked list of symbols
to convert from local binding into global binding. to convert from local binding into global binding.

View file

@ -1412,6 +1412,17 @@ get_sparc64_dynamic_type (unsigned long type)
} }
} }
static const char *
get_ppc_dynamic_type (unsigned long type)
{
switch (type)
{
case DT_PPC_GLINK: return "PPC_GLINK";
default:
return NULL;
}
}
static const char * static const char *
get_ppc64_dynamic_type (unsigned long type) get_ppc64_dynamic_type (unsigned long type)
{ {
@ -1552,6 +1563,9 @@ get_dynamic_type (unsigned long type)
case EM_SPARCV9: case EM_SPARCV9:
result = get_sparc64_dynamic_type (type); result = get_sparc64_dynamic_type (type);
break; break;
case EM_PPC:
result = get_ppc_dynamic_type (type);
break;
case EM_PPC64: case EM_PPC64:
result = get_ppc64_dynamic_type (type); result = get_ppc64_dynamic_type (type);
break; break;