diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-03-18 02:35:01 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-28 11:46:14 -0400 |
commit | eb765c1ceb275b839ec67ff5779148b9298369c2 (patch) | |
tree | 1a7bf3f0e831ca069963681446622e1efbfcb585 /arch/arm | |
parent | bf35706f3d0929b413e90b32cf9dd453f200a570 (diff) |
ARM: 8317/1: move the .idmap.text section closer to .head.text
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/vmlinux.lds.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index b31aa73e8076..e8d5fba807a0 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S | |||
@@ -100,6 +100,7 @@ SECTIONS | |||
100 | 100 | ||
101 | .text : { /* Real text segment */ | 101 | .text : { /* Real text segment */ |
102 | _stext = .; /* Text and read-only data */ | 102 | _stext = .; /* Text and read-only data */ |
103 | IDMAP_TEXT | ||
103 | __exception_text_start = .; | 104 | __exception_text_start = .; |
104 | *(.exception.text) | 105 | *(.exception.text) |
105 | __exception_text_end = .; | 106 | __exception_text_end = .; |
@@ -108,7 +109,6 @@ SECTIONS | |||
108 | SCHED_TEXT | 109 | SCHED_TEXT |
109 | LOCK_TEXT | 110 | LOCK_TEXT |
110 | KPROBES_TEXT | 111 | KPROBES_TEXT |
111 | IDMAP_TEXT | ||
112 | #ifdef CONFIG_MMU | 112 | #ifdef CONFIG_MMU |
113 | *(.fixup) | 113 | *(.fixup) |
114 | #endif | 114 | #endif |