aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2021-06-11 11:00:56 +0200
committerAlan Modra <amodra@gmail.com>2021-07-14 21:40:05 +0930
commit51d29b8cacd75865a9ffc46cffffe1e47c33ccff (patch)
tree8800eb84ab44902fb543d25dfa7ad60f29503b6b /gas/config
parentbe36c6e3374821fe5699556bbfa2280e3a4696df (diff)
downloadfsf-binutils-gdb-51d29b8cacd75865a9ffc46cffffe1e47c33ccff.zip
fsf-binutils-gdb-51d29b8cacd75865a9ffc46cffffe1e47c33ccff.tar.gz
fsf-binutils-gdb-51d29b8cacd75865a9ffc46cffffe1e47c33ccff.tar.bz2
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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 80818e9..567f801 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -4628,7 +4628,7 @@ ppc_change_debug_section (unsigned int idx, subsegT subseg)
flagword oldflags;
const struct xcoff_dwsect_name *dw = &xcoff_dwsect_names[idx];
- sec = subseg_new (dw->name, subseg);
+ sec = subseg_new (dw->xcoff_name, subseg);
oldflags = bfd_section_flags (sec);
if (oldflags == SEC_NO_FLAGS)
{