Hello

I am trying to enable debug names acceleration table with fdebug-types-sections 
in LLVM. One part I am not sure about is the local TU list. It contains an 
offset into .debug_info section. All the entries have an index entry that 
points to the local TU list. DIEs within entry offsets are relative to the TU 
entry.

Linker de-duplicates Type Units using COMDAT. So, the final result will have 
less type units. As the result Local Type Unit List will be invalid, and all 
the Entries that point to that TU will not be valid either. Even if we Linker 
is modified so that somehow when it de-duplicates type sections Local Type 
Units will get the right offset, that still leaves all the duplicate entries.
Am I missing something in that linker, specifically LLD, will need to be aware 
of context of .debug_names sections when it de-duplicates type sections?

It seems to me that to fully support it .debug_names need to be created by post 
build tool (or by linker....).


Thanks.

-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss

Reply via email to