[llvm-dev] [RFC] - Deduplication of debug information in linkers (LLD).

George Rimar via llvm-dev llvm-dev at lists.llvm.org
Sat Dec 16 18:40:43 PST 2017


>Not sure I understand what you're suggesting here, sorry :/

Ah, looks it is that:
"that's why something like Apple's scheme (leave the debug info in the object files, but have the linker ignore them -
then merge the debug info separately in dsymutil) wasn't applicable".

So instead of splitting debug info into separate files, info could be still included into linker output.
?But difference with current traditional flow is that linker would not process debug relocations
(because technically info can be (probably) close/the same as split debug has), what could (probably)
resolve issues with relocations processing (too large values). Could keep the single output file, but save time
that linker normally spends on resolving relocations. And allows to do things like deduplications inside linker
(what can be convinent). Though increases output size (not sure it is still a problem nowadays).

Have to run away now, sorry.

George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171217/5e5bd455/attachment.html>


More information about the llvm-dev mailing list