ARM: 8317/1: move the .idmap.text section closer to .head.text
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 18 Mar 2015 06:35:01 +0000 (07:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 28 Mar 2015 15:46:14 +0000 (15:46 +0000)
This moves the .idmap.text section closer to .head.text, so that
relative branches are less likely to go out of range if the kernel
text gets bigger.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/vmlinux.lds.S

index b31aa73..e8d5fba 100644 (file)
@@ -100,6 +100,7 @@ SECTIONS
 
        .text : {                       /* Real text segment            */
                _stext = .;             /* Text and read-only data      */
+                       IDMAP_TEXT
                        __exception_text_start = .;
                        *(.exception.text)
                        __exception_text_end = .;
@@ -108,7 +109,6 @@ SECTIONS
                        SCHED_TEXT
                        LOCK_TEXT
                        KPROBES_TEXT
-                       IDMAP_TEXT
 #ifdef CONFIG_MMU
                        *(.fixup)
 #endif