Move the rest of devtools to util/

This commit is contained in:
Jonathan "Duke" Leto
2022-09-19 06:20:15 -07:00
parent 5b105ce61a
commit 7000ba189c
3 changed files with 0 additions and 0 deletions

10
util/split-debug.sh Executable file
View 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