On 9/13/24 09:37, Jakub Jelinek via Dwarf-discuss wrote:
DW_MACRO_import 0 means include the .debug_macro chunk from offset 0 in the section, which with applied relocations would be endless recursion there. Most likely just dwarfdump doesn't distinguish in that 0x00000000 what it really is, it is really a relocation against .debug_macro+0, but not the current .debug_macro, but .debug_macro in a different comdat group.
dwarfdump and libdwarf do read and apply relocations. they do require the user to be aware of comdat groups and to ask to see a particular single comdat group at a time. David Anderson -- What is mind? No matter. What is matter? Never mind. -- Thomas Hewitt Key, 1799-1875 -- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss