diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/elf/function-extract-ar.sh | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/burneye2/elf/function-extract-ar.sh')
| -rw-r--r-- | other/burneye2/elf/function-extract-ar.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/other/burneye2/elf/function-extract-ar.sh b/other/burneye2/elf/function-extract-ar.sh new file mode 100644 index 0000000..61573e9 --- /dev/null +++ b/other/burneye2/elf/function-extract-ar.sh | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [ $# -lt 1 ]; then | ||
| 4 | echo "usage: $0 <library-object.a> [options]" | ||
| 5 | echo | ||
| 6 | exit | ||
| 7 | fi; | ||
| 8 | |||
| 9 | rm -fR tmp-lib | ||
| 10 | mkdir tmp-lib | ||
| 11 | cp $1 tmp-lib/ | ||
| 12 | cd tmp-lib | ||
| 13 | ar x *.a | ||
| 14 | ld -q -r -o ../tmp-ar-lib.final.o *.o | ||
| 15 | cd .. | ||
| 16 | rm -fR tmp-lib | ||
| 17 | shift | ||
| 18 | ./function-extract tmp-ar-lib.final.o $@ | ||
| 19 | rm tmp-ar-lib.final.o debug.dot | ||
| 20 | #rm debug.ps | ||
| 21 | |||
