X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fgeneric-2.6%2Fpatches-2.6.28%2F027-module_exports.patch;h=e931ec9d9b30380daf1a31c79ca10ebd4ab3b1f2;hp=014f47dab6a1969bb288b0d903ad164ffc8c5b24;hb=bf1474d18f8acccf23a745b6fc0428213feae4ad;hpb=ea634f3d0c79b6b6f86c39996d86982d39854d34 diff --git a/target/linux/generic-2.6/patches-2.6.28/027-module_exports.patch b/target/linux/generic-2.6/patches-2.6.28/027-module_exports.patch index 014f47dab6..e931ec9d9b 100644 --- a/target/linux/generic-2.6/patches-2.6.28/027-module_exports.patch +++ b/target/linux/generic-2.6/patches-2.6.28/027-module_exports.patch @@ -152,3 +152,40 @@ . = ALIGN(PAGE_SIZE); _end = . ; PROVIDE32 (end = .); +--- a/arch/arm/kernel/vmlinux.lds.S ++++ b/arch/arm/kernel/vmlinux.lds.S +@@ -76,16 +76,6 @@ SECTIONS + #endif + } + +- /DISCARD/ : { /* Exit code and data */ +- EXIT_TEXT +- EXIT_DATA +- *(.exitcall.exit) +-#ifndef CONFIG_MMU +- *(.fixup) +- *(__ex_table) +-#endif +- } +- + .text : { /* Real text segment */ + _text = .; /* Text and read-only data */ + __exception_text_start = .; +@@ -173,6 +163,17 @@ SECTIONS + *(COMMON) + _end = .; + } ++ ++ /DISCARD/ : { /* Exit code and data */ ++ EXIT_TEXT ++ EXIT_DATA ++ *(.exitcall.exit) ++#ifndef CONFIG_MMU ++ *(.fixup) ++ *(__ex_table) ++#endif ++ } ++ + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) }