projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b60eb4
)
kernel: improve profiling support, keep static symbols when profiling is enabled
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 17 Mar 2012 13:03:14 +0000
(13:03 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 17 Mar 2012 13:03:14 +0000
(13:03 +0000)
SVN-Revision: 30964
scripts/strip-kmod.sh
patch
|
blob
|
history
target/linux/generic/patches-3.2/202-reduce_module_size.patch
patch
|
blob
|
history
target/linux/generic/patches-3.3/202-reduce_module_size.patch
patch
|
blob
|
history
diff --git
a/scripts/strip-kmod.sh
b/scripts/strip-kmod.sh
index 789364f97bbced62345dc5af179142522640a711..2a75e39821121b7992f3ba66687077fa7a649a74 100755
(executable)
--- a/
scripts/strip-kmod.sh
+++ b/
scripts/strip-kmod.sh
@@
-12,7
+12,11
@@
MODULE="$1"
}
ARGS=
}
ARGS=
-[ -n "$KEEP_SYMBOLS" ] || ARGS="-x -G __this_module --strip-unneeded"
+if [ -n "$KEEP_SYMBOLS" ]; then
+ ARGS="-X --strip-debug"
+else
+ ARGS="-x -G __this_module --strip-unneeded"
+fi
${CROSS}objcopy \
-R .comment \
${CROSS}objcopy \
-R .comment \
diff --git
a/target/linux/generic/patches-3.2/202-reduce_module_size.patch
b/target/linux/generic/patches-3.2/202-reduce_module_size.patch
index f1efb90c37113c843376efe3e8a4c73e06a7cd2f..d12a5e7c0d0341ca5c9f54688b3829e89559aa32 100644
(file)
--- a/
target/linux/generic/patches-3.2/202-reduce_module_size.patch
+++ b/
target/linux/generic/patches-3.2/202-reduce_module_size.patch
@@
-5,7
+5,7
@@
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
-KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
-KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
-+KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
-s
++KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
$(if $(CONFIG_PROFILING),,-s)
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
diff --git
a/target/linux/generic/patches-3.3/202-reduce_module_size.patch
b/target/linux/generic/patches-3.3/202-reduce_module_size.patch
index f1efb90c37113c843376efe3e8a4c73e06a7cd2f..d12a5e7c0d0341ca5c9f54688b3829e89559aa32 100644
(file)
--- a/
target/linux/generic/patches-3.3/202-reduce_module_size.patch
+++ b/
target/linux/generic/patches-3.3/202-reduce_module_size.patch
@@
-5,7
+5,7
@@
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
-KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
-KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
-+KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
-s
++KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
$(if $(CONFIG_PROFILING),,-s)
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)