aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-17 13:03:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-17 13:03:14 +0000
commit7b609a31bede49a725e79324b49a16b0d31a9323 (patch)
treebfc0cc2f3311b447eb90ca5115bb607a3fefb1af /target/linux
parent9b60eb478ae4be622b4981058af6a1817539cddc (diff)
downloadupstream-7b609a31bede49a725e79324b49a16b0d31a9323.tar.gz
upstream-7b609a31bede49a725e79324b49a16b0d31a9323.tar.bz2
upstream-7b609a31bede49a725e79324b49a16b0d31a9323.zip
kernel: improve profiling support, keep static symbols when profiling is enabled
SVN-Revision: 30964
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/patches-3.2/202-reduce_module_size.patch2
-rw-r--r--target/linux/generic/patches-3.3/202-reduce_module_size.patch2
2 files changed, 2 insertions, 2 deletions
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 f1efb90c37..d12a5e7c0d 100644
--- 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_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)
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 f1efb90c37..d12a5e7c0d 100644
--- 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_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)