[PATCH] D74169: [WIP][LLD][ELF][DebugInfo] Skeleton implementation of removing obsolete debug info.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 14:18:31 PST 2020


avl added a comment.

>>   On one side, I've heard thoughts that:
>>    (1) if we use -gsplit-dwarf, is .debug* garbage collection still valuable?



> For users using -gsplit-dwarf, linker garbage collection provides zero value. But not everyone does, there are reasons to use one or the other in different situations.

also, as an theoretical alternative - probably we might want to implement -gsplit-dwarf so that it include only used part of debug info. i.e. that which referenced after garbage collection. As the result size of all .dwo files would be smaller.

>>   (2) DWARFLinker can significantly increase link time. Can we move it to a post-link tool (dsymutil but for ELF)?



> Presumably that'd take significantly longer and use more memory and disk space overall - but, yes, it would get you a running executable sooner. (/somewhat/ like the tradeoff of using .dwo files directly,  compared to linking them into a .dwp - dwo files are ready sooner, but take up more space, etc, but dwp takes time to make - good for archival purposes)



> But (2) I think is unclear to me - I'd like to know how much more time/memory it takes,

I am preparing the full patch for that feature, so that it would be possible to estimate these values: how much more time/memory it takes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74169/new/

https://reviews.llvm.org/D74169





More information about the llvm-commits mailing list