llvm-project/llvm/tools/llvm-objcopy
Fangrui Song b14e9e3c0c Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols
Don't error on Config.KeepFileSymbols for COFF and Mach-O.

Original description:

GNU objcopy removes STT_FILE symbols for strip-debug operations, and
keeps them for --discard-all operation. Match their behaviour for
llvm-objcopy.

Bug: https://github.com/android/ndk/issues/1212

Differential Revision: https://reviews.llvm.org/D76675
2020-04-20 21:18:48 -07:00
..
COFF Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols 2020-04-20 21:18:48 -07:00
ELF Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols 2020-04-20 21:18:48 -07:00
MachO Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols 2020-04-20 21:18:48 -07:00
wasm [llvm-objcopy][WebAssembly] Add dump/add/remove-section support 2020-02-11 15:17:18 -08: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 [llvm-objcopy][WebAssembly] Add dump/add/remove-section support 2020-02-11 15:17:18 -08:00
CommonOpts.td [llvm-objcopy][ELF] Implement --only-keep-debug 2019-11-05 08:56:15 -08:00
CopyConfig.cpp Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols 2020-04-20 21:18:48 -07:00
CopyConfig.h [llvm-objcopy][ELF] Allow setting SHF_EXCLUDE flag for ELF sections 2020-01-20 18:56:45 -08:00
InstallNameToolOpts.td Introduce llvm-install-name-tool 2019-11-19 23:42:37 -08: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] Add --set-section-alignment 2019-10-02 12:41:25 +00:00
StripOpts.td [llvm-objcopy] Move duplicate tablegen from objcopy and strip into one file 2019-08-15 04:45:41 +00:00
llvm-objcopy.cpp [llvm-objcopy] Improve tool selection logic to recognize llvm-strip-$major as strip 2020-03-23 13:49:26 -07:00
llvm-objcopy.h Small refactoring of FileError. NFC. 2019-02-11 09:49:37 +00:00