File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 36
36
# Get the symbol table prefix
37
37
38
38
prefix=$2
39
- add_sym=$3
40
39
41
40
# Extract all of the undefined symbols from the ELF files and create a
42
41
# list of sorted, unique undefined variable names.
@@ -60,16 +59,19 @@ if [ -z "$varlist" ]; then
60
59
fi
61
60
fi
62
61
63
- if [ " x$add_sym " != " x" ]; then
64
- if [ -f $add_sym ]; then
65
- varlist=" ${varlist} \n$( cat $add_sym | grep -v " ^,.*" ) "
66
- elif [ -d $add_sym ]; then
67
- varlist=" ${varlist} \n$( find $add_sym -type f | xargs cat | grep -v " ^,.*" ) "
68
- else
69
- echo $usage
70
- exit 1
71
- fi
72
- varlist=$( echo -e " ${varlist} " | sort -u)
62
+ if [ $# -gt 2 ]; then
63
+ shift 2
64
+ for add_sym in $@ ; do
65
+ if [ -f $add_sym ]; then
66
+ varlist=" ${varlist} \n$( cat $add_sym | grep -v " ^,.*" ) "
67
+ elif [ -d $add_sym ]; then
68
+ varlist=" ${varlist} \n$( find $add_sym -type f | xargs cat | grep -v " ^,.*" ) "
69
+ else
70
+ echo $usage
71
+ exit 1
72
+ fi
73
+ varlist=$( echo -e " ${varlist} " | sort -u)
74
+ done
73
75
fi
74
76
75
77
# Now output the symbol table as a structure in a C source file. All
You can’t perform that action at this time.
0 commit comments