diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8457dc7..9774dea 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2013-10-30 Ulrich Weigand <uweigand@de.ibm.com> + + * readelf.c (get_ppc64_symbol_other): New function. + (get_symbol_other): Use it for EM_PPC64. + 2013-10-30 Alan Modra <amodra@gmail.com> * readelf.c (get_machine_flags): Display ABI version for EM_PPC64. diff --git a/binutils/readelf.c b/binutils/readelf.c index ab2943d..c99b46e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9211,6 +9211,19 @@ get_ia64_symbol_other (unsigned int other) } static const char * +get_ppc64_symbol_other (unsigned int other) +{ + if (PPC64_LOCAL_ENTRY_OFFSET (other) != 0) + { + static char buf[32]; + snprintf (buf, sizeof buf, _("<localentry>: %d"), + PPC64_LOCAL_ENTRY_OFFSET (other)); + return buf; + } + return NULL; +} + +static const char * get_symbol_other (unsigned int other) { const char * result = NULL; @@ -9227,6 +9240,9 @@ get_symbol_other (unsigned int other) case EM_IA_64: result = get_ia64_symbol_other (other); break; + case EM_PPC64: + result = get_ppc64_symbol_other (other); + break; default: break; } |