Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/split-debug.sh.in
#!/bin/sh | #!/usr/bin/env bash | ||||
export LC_ALL=C | |||||
if [ $# -ne 3 ]; | if [ $# -ne 3 ]; | ||||
then echo "usage: $0 <input> <stripped-binary> <debug-binary>" | then echo "usage: $0 <input> <stripped-binary> <debug-binary>" | ||||
fi | fi | ||||
@OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3 | @OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3 | ||||
@OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2 | @OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2 | ||||
@STRIP@ --enable-deterministic-archives -p -s $2 | @STRIP@ --enable-deterministic-archives -p -s $2 | ||||
@OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2 | @OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2 |