objdump: add DWARF support for AIX
authorClément Chigot <clement.chigot@atos.net>
Fri, 11 Jun 2021 09:00:56 +0000 (11:00 +0200)
committerAlan Modra <amodra@gmail.com>
Wed, 14 Jul 2021 12:10:05 +0000 (21:40 +0930)
commit51d29b8cacd75865a9ffc46cffffe1e47c33ccff
tree8800eb84ab44902fb543d25dfa7ad60f29503b6b
parentbe36c6e3374821fe5699556bbfa2280e3a4696df
objdump: add DWARF support for AIX

DWARF sections have special names on AIX which need be handled
by objdump in order to correctly print them.
This patch also adds the correlation in bfd for future uses.

bfd/
* libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
* coff-rs6000.c (xcoff_dwsect_names): Update.
* coffcode.h (sec_to_styp_flags): Likewise.
(coff_new_section_hook): Likewise.
binutils/
* dwarf.h (struct dwarf_section): Add XCOFF name.
* dwarf.c (struct dwarf_section_display): Update.
* objdump.c (load_debug_section): Add XCOFF name handler.
(dump_dwarf_section): Likewise.
gas/
* config/tc-ppc.c (ppc_change_debug_section): Update to
match new name's field.
bfd/ChangeLog
bfd/coff-rs6000.c
bfd/coffcode.h
bfd/libxcoff.h
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
binutils/objdump.c
gas/ChangeLog
gas/config/tc-ppc.c