You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
359 B
11 lines
359 B
3 years ago
|
#!/bin/sh
|
||
|
set -e
|
||
|
if [ $# -ne 3 ];
|
||
|
then echo "usage: $0 <input> <stripped-binary> <debug-binary>"
|
||
|
fi
|
||
|
|
||
|
@OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3
|
||
|
@OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2
|
||
|
@STRIP@ --enable-deterministic-archives -p -s $2
|
||
|
@OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2
|