X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5f33b429e2ec7a5aa0f78cb1d96e22778c6ea5c3..d9272169b84d59efaac856c5595b4f656937d5f0:/target/linux/generic-2.6/patches-2.6.32/028-module_exports.patch diff --git a/target/linux/generic-2.6/patches-2.6.32/028-module_exports.patch b/target/linux/generic-2.6/patches-2.6.32/028-module_exports.patch index b06939f48..5d86333c7 100644 --- a/target/linux/generic-2.6/patches-2.6.32/028-module_exports.patch +++ b/target/linux/generic-2.6/patches-2.6.32/028-module_exports.patch @@ -69,21 +69,25 @@ VMLINUX_SYMBOL(__stop___ksymtab_gpl_future) = .; \ } \ \ -@@ -323,7 +344,13 @@ +@@ -323,7 +344,7 @@ \ /* Kernel symbol table: strings */ \ __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ - *(__ksymtab_strings) \ + SYMTAB_KEEP_STR \ -+ } \ -+ \ -+ /DISCARD/ : { \ -+ SYMTAB_DISCARD \ -+ SYMTAB_DISCARD_GPL \ -+ SYMTAB_DISCARD_STR \ } \ \ /* __*init sections */ \ +@@ -638,6 +659,9 @@ + EXIT_TEXT \ + EXIT_DATA \ + EXIT_CALL \ ++ SYMTAB_DISCARD \ ++ SYMTAB_DISCARD_GPL \ ++ SYMTAB_DISCARD_STR \ + *(.discard) \ + } + --- a/include/linux/module.h +++ b/include/linux/module.h @@ -192,16 +192,24 @@ void *__symbol_get_gpl(const char *symbo