summaryrefslogtreecommitdiffstats
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-10-29 15:37:43 +1030
committerAlan Modra <amodra@gmail.com>2013-11-15 15:41:31 +1030
commit82a8efbbc424930446b098d30a0f20a2ef3cbe9b (patch)
tree578bbaca60c57d10b9b1cb9a70671e31ca07079e /binutils/readelf.c
parent1bc198ad18a528bb9725be5ff731d25e623ec196 (diff)
downloadppe42-binutils-82a8efbbc424930446b098d30a0f20a2ef3cbe9b.tar.gz
ppe42-binutils-82a8efbbc424930446b098d30a0f20a2ef3cbe9b.zip
Add ELFv2 .localentry support.
(cherry picked from commit 6911b7dcb8ea17f8b811578dd4ac1ab7bb675e7b)
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 6ac6976fb9..74dc9eadba 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;
}
OpenPOWER on IntegriCloud