[Dwarf-discuss] [DWARF5] .debug_names + fdebug-types-sections

Alexander Yermolovich ayermolo@meta.com
Fri Sep 15 21:45:25 GMT 2023


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dwarfstd.org/pipermail/dwarf-discuss/attachments/20230915/67be5cf9/attachment.htm>


More information about the Dwarf-discuss mailing list