1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/tools/llvm-objcopy
Jordan Rupprecht 854147d0cc [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][NFC] Refactor symbol/section matching 2019-08-22 19:17:50 +00:00
ELF [llvm-objcopy] Strip debug sections when running with --strip-unneeded. 2019-08-23 14:28:58 +00:00
MachO Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI. 2019-08-20 10:25:57 +00:00
Buffer.cpp [llvm-objcopy][NFC] Remove unnecessary llvm-objcopy.h #includes 2019-03-13 23:40:16 +00:00
Buffer.h [llvm-objcopy] Fix crash when writing empty binary output 2019-01-28 15:02:40 +00:00
CMakeLists.txt Recommit "[llvm-objcopy][MachO] Support load commands used in executables/shared libraries" 2019-08-19 21:05:31 +00:00
CommonOpts.td [llvm-objcopy] Move duplicate tablegen from objcopy and strip into one file 2019-08-15 04:45:41 +00:00
CopyConfig.cpp [llvm-objcopy][NFC] Refactor symbol/section matching 2019-08-22 19:17:50 +00:00
CopyConfig.h [llvm-objcopy][NFC] Refactor symbol/section matching 2019-08-22 19:17:50 +00:00
llvm-objcopy.cpp [llvm-objcopy] Append '\n' to warning messages 2019-08-20 15:00:07 +00:00
llvm-objcopy.h Small refactoring of FileError. NFC. 2019-02-11 09:49:37 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjcopyOpts.td [llvm-objcopy] Allow 'protected' visibility to be set when using 2019-08-15 09:45:09 +00:00
StripOpts.td [llvm-objcopy] Move duplicate tablegen from objcopy and strip into one file 2019-08-15 04:45:41 +00:00