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

George Rimar via llvm-dev llvm-dev at lists.llvm.org
Sun Dec 17 20:46:53 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.

Ok. That above looks sound wierd. I think I just need to read more about how all DWARF things work then.
(particularry about split debug output details and dsymutil, though their logic looks transparent for me atm).
Or that brief description I mentioned I saw somewhere was dead
from start or it most likely it was just something else/different suggested, probably with involving
a compiler/debugger side changes too as well. Can only guess now :/

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


More information about the llvm-dev mailing list