llvm-project/llvm/tools/llvm-objcopy
Jake Ehrlich 8ad7779071 [llvm-objcopy] Add --build-id-link-dir flag
This flag does not exist in GNU objcopy but has a major use case.
Debugging tools support the .build-id directory structure to find
debug binaries. There is no easy way to build this structure up
however. One way to do it is by using llvm-readelf and some crazy
shell magic. This implements the feature directly. It is most often
the case that you'll want to strip a file and send the original to
the .build-id directory but if you just want to send a file to the
.build-id directory you can copy to /dev/null instead.

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

llvm-svn: 348174
2018-12-03 19:49:23 +00:00
..
ELF [llvm-objcopy] Add --build-id-link-dir flag 2018-12-03 19:49:23 +00:00
Buffer.cpp [llvm-objcopy] Factor out Buffer 2018-10-16 05:40:18 +00:00
Buffer.h [llvm-objcopy] Factor out Buffer 2018-10-16 05:40:18 +00:00
CMakeLists.txt [llvm-objcopy] Move elf-specific code into subfolder 2018-10-29 21:22:58 +00:00
CopyConfig.cpp [llvm-objcopy] Add --build-id-link-dir flag 2018-12-03 19:49:23 +00:00
CopyConfig.h [llvm-objcopy] Add --build-id-link-dir flag 2018-12-03 19:49:23 +00:00
LLVMBuild.txt Recommit "[llvm-objcopy] Switch over to using TableGen for parsing arguments" 2018-04-24 05:43:32 +00:00
ObjcopyOpts.td [llvm-objcopy] Add --build-id-link-dir flag 2018-12-03 19:49:23 +00:00
StripOpts.td [llvm-objcopy] Hook up the -V alias to --version, output "GNU strip" 2018-11-28 06:51:50 +00:00
llvm-objcopy.cpp [Support] Make error banner optional in logAllUnhandledErrors 2018-11-11 01:46:03 +00:00
llvm-objcopy.h [Support] Make error banner optional in logAllUnhandledErrors 2018-11-11 01:46:03 +00:00