aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/CompileStep.zig
diff options
context:
space:
mode:
authorXavier Bouchoux <xavierb@gmail.com>2023-03-11 16:37:27 +0100
committerXavier Bouchoux <xavierb@gmail.com>2023-03-20 08:39:23 +0100
commit3a700d60baf419d837c0e71518e388337cb1bb33 (patch)
tree3887c75d01774972150302c6fb7b8cfdc06d1524 /lib/std/Build/CompileStep.zig
parent30427ff794514d51cb5066b9e50113da998e0fd0 (diff)
downloadzig-3a700d60baf419d837c0e71518e388337cb1bb33.tar.gz
zig-3a700d60baf419d837c0e71518e388337cb1bb33.zip
objcopy: add some support for --strip-debug and --strip-all
Support for the use case: `zig objcopy --strip-all program stripped --extract-to stripped.dbg` to separate the debug & symbols sections out to a companion file, with a corresponding a .gnu_debuglink. note: this is "a minimal effort implementation" It doesn't support all possibile elf files: there may be some sections type that need fixups, the program header may need fix up, ... It was written for a specific use case (strip debug info to a sperate file, for linux 64-bits executables built with `zig` or `zig c++` ) It doesn't support 32-bit files, or file with non-native endianess.
Diffstat (limited to 'lib/std/Build/CompileStep.zig')
0 files changed, 0 insertions, 0 deletions