diff options
author | Alan Modra <amodra@gmail.com> | 2013-10-29 15:06:09 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-11-15 15:38:51 +1030 |
commit | 1bc198ad18a528bb9725be5ff731d25e623ec196 (patch) | |
tree | c97bc2cad8f34fe2ab2bc93cddb552a4b36fa1ae /binutils | |
parent | 2e3744e94c360560822c67754be9228ddf6e2283 (diff) | |
download | ppe42-binutils-1bc198ad18a528bb9725be5ff731d25e623ec196.tar.gz ppe42-binutils-1bc198ad18a528bb9725be5ff731d25e623ec196.zip |
Add .abiversion related support for ELFv2
(cherry picked from commit ee67d69a3ff0eed25d98c5e97ed6c3ede8069edc)
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index bc1ace9d50..7a4164f0ff 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2013-11-15 Alan Modra <amodra@gmail.com> + + Apply changes from mainline to 2.24 + 2013-10-30 Alan Modra <amodra@gmail.com> + * readelf.c (get_machine_flags): Display ABI version for EM_PPC64. + 2013-11-07 Roland McGrath <mcgrathr@google.com> * objdump.c (dump_dwarf): Grok bfd_mach_x86_64_nacl and diff --git a/binutils/readelf.c b/binutils/readelf.c index 19b46c9c05..6ac6976fb9 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2461,6 +2461,16 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) strcat (buf, _(", relocatable-lib")); break; + case EM_PPC64: + if (e_flags & EF_PPC64_ABI) + { + char abi[] = ", abiv0"; + + abi[6] += e_flags & EF_PPC64_ABI; + strcat (buf, abi); + } + break; + case EM_V800: if ((e_flags & EF_RH850_ABI) == EF_RH850_ABI) strcat (buf, ", RH850 ABI"); |