[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 06:31:11 PDT 2019
MaskRay added a comment.
In D46628#1555467 <https://reviews.llvm.org/D46628#1555467>, @luciang wrote:
> > Then how about -gmlt?
>
> Sorry, I tried to reply in this bullet point but wasn't very clear:
>
> > input .o come from a shared cache and have rich debug info
>
> We have two kinds of .o:
>
> - always built from source - we could use -gmlt here (even though it would be preferable to fetch them from a shared cache).
> - prebuilt .o with full debug info - (eg. prebuilt external third-party code managed by an *inflexible* tp management system).
See this part of my question:
> If you compile the program (say a.c) twice, once with -g and once with -gmlt, then you link the program twice. The -g link gets full debug info, while the -gmlt link naturally gets smaller input and produces smaller output.
>
> If you compile the program once with -g, and expect to get two programs, one with full debug info, the other with sufficient debug info to retain line tables. You can link it once and then postprocess the program with another tool.
>
> In neither case a linker option is needed.
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