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

George Rimar via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 8 01:09:07 PST 2017


>Postprocessing (ie: running a tool on the fully linked binary with the debug info we have today, and having the tool reprocess the debug info to make it more >compact) is an option, but wouldn't help address the problem you started with - that the output can't fit the large offsets, so the output is invalid/broken. So that >output would be broken before the postprocessing step could run to compact things.


Right. So then it could be some API that takes .debug_* sections from linker, takes relocations, additional info,

like info about GCed/ICFed sections. It could rebuild debug data, rebuild relocations and return it back to linker,

so it could take deduplicated debug info, perform updated relocations and produce output.


Does not feel nice honestly. It is definetely seems easier to do all of that on linker side instead.


George.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171208/3488aca7/attachment.html>


More information about the llvm-dev mailing list