blob: 8ac31d4dcc8b26ed4206bb1c0f8bb7b6c67e6b4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
#LOG=/tmp/gen-linker-script.log
#echo "$0 $*" > $LOG
COLLECT_SYMBOLS="${0%gen-linker-script}../utils/collect-symbols"
ARGS=""
while [ -n "$*" ]; do
# echo "[$ARGS]" 1>&2
case $1 in
-c) #echo " [$1] [$2]" 1>&2;
ARGS="$ARGS -c '$2'"; shift 2;;
*) #echo " [$1]" 1>&2;
ARGS="$ARGS '$1'" ; shift 1;;
esac
done
#echo "ARGS: [$ARGS]" 1>&2
#echo "ARGS: [$ARGS]" >> $LOG
#echo "$COLLECT_SYMBOLS -g $ARGS" >> $LOG
eval "$COLLECT_SYMBOLS -g $ARGS"
|