mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 14:47:46 +01:00
arm: when linking the kernel, move the section discards after the other sections to fix discarding unused symbol exports
SVN-Revision: 17204
This commit is contained in:
parent
dd48a43550
commit
bad105e7c8
@ -152,3 +152,40 @@
|
|||||||
. = ALIGN(PAGE_SIZE);
|
. = ALIGN(PAGE_SIZE);
|
||||||
_end = . ;
|
_end = . ;
|
||||||
PROVIDE32 (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) }
|
||||||
|
Loading…
Reference in New Issue
Block a user