[Lldb-commits] [PATCH] D54747: Discard debuginfo for object files empty after GC
Robert O'Callahan via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Dec 30 16:05:48 PST 2018
rocallahan added a comment.
Here are some results for the rusoto test in https://github.com/rust-lang/rust/issues/56068#issue-382175735:
| LLD | Binary size in bytes |
| LLD 6.0.1 | 43,791,192 |
| LLD 8.0.0 1cfcf404f6b23943405bc3c5bb5940b10b914624 | 43,861,056 |
| LLD 8.0.0 1cfcf404f6b23943405bc3c5bb5940b10b914624 `--start-lib` | 43,844,760 |
| LLD 8.0.0 1cfcf404f6b23943405bc3c5bb5940b10b914624 + this patch | 6,281,488 |
|
For `--start-lib` I wrapped `--start-lib`/`--end-lib` around all object files.
As I expected `--start-lib` didn't make much difference. The dependencies containing debuginfo that I want to be GCed away are already packaged into static libraries before being passed to the final link.
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54747/new/
https://reviews.llvm.org/D54747
More information about the lldb-commits
mailing list