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

Brian Gesiak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 20:09:23 PDT 2018


modocache added a comment.

In https://reviews.llvm.org/D46628#1095084, @probinson wrote:

> Does gold really preserve .debug_info and .debug_abbrev?  Generally .debug_info is by far the largest DWARF section and so the one you most likely want to remove.


Good point. `gold` doesn't remove those sections completely, but it does prune them. For example, here's the difference between `gold` and `gold --strip-debug-non-line` for a simple program: https://reviews.llvm.org/P8082


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D46628





More information about the llvm-commits mailing list