diff options
author | Clément Chigot <clement.chigot@atos.net> | 2021-06-11 11:00:56 +0200 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-07-14 21:40:05 +0930 |
commit | 51d29b8cacd75865a9ffc46cffffe1e47c33ccff (patch) | |
tree | 8800eb84ab44902fb543d25dfa7ad60f29503b6b /gas | |
parent | be36c6e3374821fe5699556bbfa2280e3a4696df (diff) | |
download | gdb-51d29b8cacd75865a9ffc46cffffe1e47c33ccff.zip gdb-51d29b8cacd75865a9ffc46cffffe1e47c33ccff.tar.gz 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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 432506b..7aaf08f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2021-07-14 Clément Chigot <clement.chigot@atos.net> + + * config/tc-ppc.c (ppc_change_debug_section): Update to + match new name's field. + 2021-07-12 Tucker <tuckkern@sourceware@gmail.com> PR 28054 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) { |