projects
/
openwrt
/
staging
/
jogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scripts: add EVA ramboot script
[openwrt/staging/jogo.git]
/
scripts
/
strip-kmod.sh
diff --git
a/scripts/strip-kmod.sh
b/scripts/strip-kmod.sh
index 2a75e39821121b7992f3ba66687077fa7a649a74..313015b909af6957d8b24f36b489c5b1c7e11974 100755
(executable)
--- a/
scripts/strip-kmod.sh
+++ b/
scripts/strip-kmod.sh
@@
-18,13
+18,18
@@
else
ARGS="-x -G __this_module --strip-unneeded"
fi
ARGS="-x -G __this_module --strip-unneeded"
fi
+if [ -z "$KEEP_BUILD_ID" ]; then
+ ARGS="$ARGS -R .note.gnu.build-id"
+fi
+
${CROSS}objcopy \
-R .comment \
-R .pdr \
-R .mdebug.abi32 \
${CROSS}objcopy \
-R .comment \
-R .pdr \
-R .mdebug.abi32 \
- -R .note.gnu.build-id \
-R .gnu.attributes \
-R .reginfo \
-R .gnu.attributes \
-R .reginfo \
+ -R .MIPS.abiflags \
+ -R .note.GNU-stack \
$ARGS \
"$MODULE" "$MODULE.tmp"
$ARGS \
"$MODULE" "$MODULE.tmp"
@@
-38,9
+43,10
@@
BEGIN {
n = 0
}
n = 0
}
-$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ {
+$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/
&& !def[$3]
{
print "--redefine-sym "$3"=_"n;
n = n + 1
print "--redefine-sym "$3"=_"n;
n = n + 1
+ def[$3] = 1
}
' > "$MODULE.tmp1"
}
' > "$MODULE.tmp1"