3 echo "The variable CROSS must be set to point to the cross-compiler prefix"
10 echo "Usage: $0 <module>"
15 if [ -n "$KEEP_SYMBOLS" ]; then
16 ARGS
="-X --strip-debug"
18 ARGS
="-x -G __this_module --strip-unneeded"
25 -R .note.gnu.build-id \
29 "$MODULE" "$MODULE.tmp"
31 [ -n "$NO_RENAME" ] && {
32 mv "${MODULE}.tmp" "$MODULE"
36 ${CROSS}nm
"$MODULE.tmp" |
awk '
41 $3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ && !def[$3] {
42 print "--redefine-sym "$3"=_"n;
48 ${CROSS}objcopy `cat ${MODULE}.tmp1` ${MODULE}.tmp ${MODULE}.out
49 mv "${MODULE}.out" "${MODULE}"
This page took 0.047915 seconds and 5 git commands to generate.