[PATCH] D46628: [ELF] Add --strip-debug-non-line option
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 02:12:07 PDT 2019
MaskRay added a comment.
It seems `--strip-debug-non-line` is not popular (internally we have never used this option...nor can I find its use case in any open-source project). The full output section `.debug_info` is produced then reduced, so I bet it will not help with the memory usage. So the benefit is a smaller output size.
However, there is another way to retain line table information, at the compiler level: `-gmlt`. I wonder whether `-gmlt + regular lld link` will be a better alternative than `-g + lld --strip-debug-non-line`... Another thing is that if we care about output sizes, we will likely use `-gsplit-dwarf`. I don't know how this option will interact with `-gsplit-dwarf`. `.debug*.dwo` sections are ignored by the linkers... This option may be useless when `-gsplit-dwarf` is used.
@luciang @modocache @christylee Have you thought about these options and compared the output sizes/memory usage of them?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D46628/new/
https://reviews.llvm.org/D46628
More information about the llvm-commits
mailing list