summaryrefslogtreecommitdiff
path: root/other/burneye2/elf/function-extract-ar.sh
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/elf/function-extract-ar.sh
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/burneye2/elf/function-extract-ar.sh')
-rw-r--r--other/burneye2/elf/function-extract-ar.sh21
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
3if [ $# -lt 1 ]; then
4 echo "usage: $0 <library-object.a> [options]"
5 echo
6 exit
7fi;
8
9rm -fR tmp-lib
10mkdir tmp-lib
11cp $1 tmp-lib/
12cd tmp-lib
13ar x *.a
14ld -q -r -o ../tmp-ar-lib.final.o *.o
15cd ..
16rm -fR tmp-lib
17shift
18./function-extract tmp-ar-lib.final.o $@
19rm tmp-ar-lib.final.o debug.dot
20#rm debug.ps
21