mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
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.
This commit is contained in:

committed by
Alan Modra

parent
be36c6e337
commit
51d29b8cac
@ -128,11 +128,13 @@ enum dwarf_section_display_enum
|
||||
struct dwarf_section
|
||||
{
|
||||
/* A debug section has a different name when it's stored compressed
|
||||
or not. COMPRESSED_NAME and UNCOMPRESSED_NAME are the two
|
||||
or not. XCOFF DWARF section also have a special name.
|
||||
COMPRESSED_NAME, UNCOMPRESSED_NAME and XCOFF_NAME are the three
|
||||
possibilities. NAME is set to whichever one is used for this
|
||||
input file, as determined by load_debug_section(). */
|
||||
const char * uncompressed_name;
|
||||
const char * compressed_name;
|
||||
const char * xcoff_name;
|
||||
const char * name;
|
||||
/* If non-NULL then FILENAME is the name of the separate debug info
|
||||
file containing the section. */
|
||||
|
Reference in New Issue
Block a user