llvm-project/llvm/test/tools/llvm-objcopy
Jordan Rupprecht 0f323439d8 [llvm-objcopy] Strip debug sections when running with --strip-unneeded.
Summary:
GNU --strip-unneeded strips debugging sections as well. Do that for llvm-objcopy as well.

Additionally, add a test that verifies we keep the .gnu_debuglink section. This apparently was not always the case, and I'm not sure which commit fixed it, but there doesn't appear to be any test coverage to make sure we continue to do so.

This fixes PR41043.

Reviewers: jhenderson, jakehehrlich, espindola, alexshap

Subscribers: emaste, arichardson, MaskRay, abrachet, seiya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66623

llvm-svn: 369761
2019-08-23 14:28:58 +00:00
..
COFF [llvm-objcopy] Improve --add-section argument string parsing 2019-07-29 16:22:40 +00:00
ELF [llvm-objcopy] Strip debug sections when running with --strip-unneeded. 2019-08-23 14:28:58 +00:00
Inputs [llvm-objcopy] [COFF] Fix handling of aux symbols for big objects 2019-01-23 11:54:51 +00:00
MachO Recommit "[llvm-objcopy][MachO] Implement a layout algorithm for executables" 2019-08-19 21:12:02 +00:00