https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115235
Bug ID: 115235 Summary: Non-standard .debug_addr section Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: llvm at rifkin dot dev Target Milestone: --- I'm trying to use -gsplit-dwarf however I'm running into a lot of tooling problems because as far as I can tell the .debug_addr is being generated in a different format than specified by the dwarf 5 standard. It seems the format described in https://gcc.gnu.org/wiki/DebugFission is being used. This is causing problems with tooling expecting the dwarf 5 format for the section. Even with -gsplit-dwarf -gdwarf-5 a non-standard .debug_addr section is generated. An example hexdump: Hex dump of section '.debug_addr': 0x00000000 82130000 00000000 aa130000 00000000 ................ 0x00000010 c1160000 00000000 29120000 00000000 ........)....... 0x00000020 90150000 00000000 eb120000 00000000 ................ 0x00000030 33130000 00000000 59130000 00000000 3.......Y....... 0x00000040 ba150000 00000000 19150000 00000000 ................ 0x00000050 04160000 00000000 41160000 00000000 ........A....... 0x00000060 bf120000 00000000 9a130000 00000000 ................ 0x00000070 07170000 00000000 5d140000 00000000 ........]....... 0x00000080 d4160000 00000000 ca130000 00000000 ................ 0x00000090 26170000 00000000 26140000 00000000 &.......&....... 0x000000a0 80140000 00000000 62170000 00000000 ........b....... 0x000000b0 e2140000 00000000 34150000 00000000 ........4....... 0x000000c0 d2140000 00000000 46150000 00000000 ........F....... 0x000000d0 94170000 00000000 7e160000 00000000 ........~....... 0x000000e0 c1170000 00000000 e8170000 00000000 ................ Is there any way to get gcc to emit the section as described by the standard? Is there any way to tell from other debug information that a non-standard encoding should be expected here?