[PATCH] D46628: [ELF] Add --strip-debug-non-line option

Lucian Adrian Grijincu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 06:48:16 PDT 2019


luciang added a comment.

> prebuilt .o with full debug info - (eg. prebuilt external third-party code managed by an *inflexible* tp management system).

Let's assume `.o` will continue to have no-nline debug info due to the inflexible tp management system -- properly supporting -gmlt this would much delay adoption of lld.

> You can link it once and then postprocess the program with another tool.

There are a few aspects for which we chose doing this in lld

- RAM use reduction: debug section are processed and reduced before creating the output file and the `ReducedDebugData` are small (from 2-3GiB -> tens of MiB).
- inefficiency: wasted IO / time: writing huge binaries twice
- complexity of integrating binary shrinking into the build system


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