aboutsummaryrefslogtreecommitdiff
path: root/bfd/libxcoff.h
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 /bfd/libxcoff.h
parentbe36c6e3374821fe5699556bbfa2280e3a4696df (diff)
downloadgdb-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 'bfd/libxcoff.h')
-rw-r--r--bfd/libxcoff.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/libxcoff.h b/bfd/libxcoff.h
index 2eeb503..4556a38 100644
--- a/bfd/libxcoff.h
+++ b/bfd/libxcoff.h
@@ -244,7 +244,10 @@ struct xcoff_dwsect_name {
unsigned int flag;
/* Corresponding XCOFF section name. */
- const char *name;
+ const char *xcoff_name;
+
+ /* Corresponding DWARF section name. */
+ const char *dwarf_name;
/* True if size must be prepended. */
bool def_size;