aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-26 16:26:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-01-26 16:26:04 +0000
commitbaf6422f7bf114647183d0458b73a73697b45ed2 (patch)
tree4735c2033251befc9826bad98e897a5950bf364d
parent1ccd35ab43fbca80eff9aad103948bb4a04f5e09 (diff)
downloadupstream-baf6422f7bf114647183d0458b73a73697b45ed2.tar.gz
upstream-baf6422f7bf114647183d0458b73a73697b45ed2.tar.bz2
upstream-baf6422f7bf114647183d0458b73a73697b45ed2.zip
kernel: fix module export stripping
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35319 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/kernel-build.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 2ae80e54e2..0b7b54fdd8 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -81,11 +81,11 @@ define BuildKernel
( \
echo '#define SYMTAB_KEEP \'; \
cat $(KERNEL_BUILD_DIR)/sym_include.txt | \
- awk '{print "*(__ksymtab." $$$$1 ") \\" }'; \
+ awk '{print "*(___ksymtab+" $$$$1 ") \\" }'; \
echo; \
echo '#define SYMTAB_KEEP_GPL \'; \
cat $(KERNEL_BUILD_DIR)/sym_include.txt | \
- awk '{print "*(__ksymtab_gpl." $$$$1 ") \\" }'; \
+ awk '{print "*(___ksymtab_gpl+" $$$$1 ") \\" }'; \
echo; \
echo '#define SYMTAB_KEEP_STR \'; \
cat $(KERNEL_BUILD_DIR)/sym_include.txt | \
@@ -93,11 +93,11 @@ define BuildKernel
echo; \
echo '#define SYMTAB_DISCARD \'; \
cat $(KERNEL_BUILD_DIR)/sym_exclude.txt | \
- awk '{print "*(__ksymtab." $$$$1 ") \\" }'; \
+ awk '{print "*(___ksymtab+" $$$$1 ") \\" }'; \
echo; \
echo '#define SYMTAB_DISCARD_GPL \'; \
cat $(KERNEL_BUILD_DIR)/sym_exclude.txt | \
- awk '{print "*(__ksymtab_gpl." $$$$1 ") \\" }'; \
+ awk '{print "*(___ksymtab_gpl+" $$$$1 ") \\" }'; \
echo; \
echo '#define SYMTAB_DISCARD_STR \'; \
cat $(KERNEL_BUILD_DIR)/sym_exclude.txt | \