On 9/12/24 11:39, David Blaikie via Dwarf-discuss wrote:
Oooh, fascinating. Certainly llvm-dwarfdump has explicit support for sections it expects to be fragmented (multiple sections with the same name, for comdat purposes, etc) - and so llvm-dwarfdump certainly wouldn't dump this correctly (probably ignores all but the first section named `.debug_macro`) from an object file (of course in a linked executable, none of this still exists so it should be fine).
Yes. In an object file with comdat sections dwarfdump and libdwarf choose a single section (base section or comdat) based on the user's request. dwarfdump will tell the user what comdat sections are in use (base is assigned #1, dwo is assigned #2 each comdat assigned a number 3,4,... and so on. dwarfdump --format-group-number=3 for example. So to see all one must run dwarfdump N times when there are groups. 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