Explorar o código

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>
Ard Biesheuvel %!s(int64=10) %!d(string=hai) anos
pai
achega
eb765c1ceb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/arm/kernel/vmlinux.lds.S

+ 1 - 1
arch/arm/kernel/vmlinux.lds.S

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