kernel: fix module export stripping
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 Jan 2013 16:26:04 +0000 (16:26 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Jan 2013 16:26:04 +0000 (16:26 +0000)
SVN-Revision: 35319

include/kernel-build.mk

index 2ae80e54e2ef51ef64df12b0fa6d9a1b626c493b..0b7b54fdd8797ff60fd171f8dc96630a26c4ea0d 100644 (file)
@@ -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 | \