Include contrib/devtools/split-debug.sh from upstream
This commit is contained in:
committed by
Jack Grigg
parent
a9f33db1ae
commit
74dcb5ff05
10
contrib/devtools/split-debug.sh
Executable file
10
contrib/devtools/split-debug.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $# -ne 3 ];
|
||||||
|
then echo "usage: $0 <input> <stripped-binary> <debug-binary>"
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/bin/objcopy --enable-deterministic-archives -p --only-keep-debug $1 $3
|
||||||
|
/usr/bin/objcopy --enable-deterministic-archives -p --strip-debug $1 $2
|
||||||
|
/usr/bin/strip --enable-deterministic-archives -p -s $2
|
||||||
|
/usr/bin/objcopy --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2
|
||||||
Reference in New Issue
Block a user