diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-26 16:26:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-26 16:26:04 +0000 |
commit | 7809d73fd2b78c65aad0a1e18b06c3a4c0c15a8d (patch) | |
tree | 6539f01833bd077ab91eca54dcc1d91813072c36 /include | |
parent | 15be1c9ee781794e7c9412473adac2e9c87fa2ad (diff) | |
download | mtk-20170518-7809d73fd2b78c65aad0a1e18b06c3a4c0c15a8d.zip mtk-20170518-7809d73fd2b78c65aad0a1e18b06c3a4c0c15a8d.tar.gz mtk-20170518-7809d73fd2b78c65aad0a1e18b06c3a4c0c15a8d.tar.bz2 |
kernel: fix module export stripping
SVN-Revision: 35319
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel-build.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 2ae80e5..0b7b54f 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 | \ |