From 7490d522be7671fe9dd4d69db26dd3cf04ef41df Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 11 May 2005 14:10:59 +0000 Subject: * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK. (get_dynamic_type): Call the above. --- binutils/ChangeLog | 13 +++++++++---- binutils/readelf.c | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index b6dff3e..ac2913a 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-05-11 Alan Modra + + * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK. + (get_dynamic_type): Call the above. + 2005-05-07 Nick Clifton * Update the address and phone number of the FSF organization in @@ -77,7 +82,7 @@ PR872 * objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure. - + * objcopy.c (copy_usage): Fix description of -K switch. * doc/binutils.texi (strip, objcopy): Fix description of -K @@ -184,7 +189,7 @@ * doc/binutils.texi: Document new VAX disassembler-specific option -M entry:0xfooba8. * NEWS: Mention the new option. - + 2005-03-29 Anil Paranjpe * MAINTAINERS: Add myself as H8300 maintainer. @@ -210,7 +215,7 @@ 2005-03-24 Dmitry Diky - * MAINTAINERS: Add myself as MSP430 maintainer. + * MAINTAINERS: Add myself as MSP430 maintainer. 2005-03-23 Nick Clifton @@ -246,7 +251,7 @@ * configure: Regenerate. 2005-03-15 Daniel Marques - Nick Clifton + Nick Clifton * objcopy.c (globalize_specific_list): New linked list of symbols to convert from local binding into global binding. diff --git a/binutils/readelf.c b/binutils/readelf.c index 715b830..9b83f08 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1413,6 +1413,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 * get_ppc64_dynamic_type (unsigned long type) { switch (type) @@ -1552,6 +1563,9 @@ get_dynamic_type (unsigned long type) case EM_SPARCV9: result = get_sparc64_dynamic_type (type); break; + case EM_PPC: + result = get_ppc_dynamic_type (type); + break; case EM_PPC64: result = get_ppc64_dynamic_type (type); break; -- cgit v1.1