[Dwarf-discuss] Macros after "#include" does not show up DWARF

David Anderson davea42@gmail.com
Fri Sep 13 21:24:43 GMT 2024


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



More information about the Dwarf-discuss mailing list