aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/vmlinux.lds.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-03-24 05:39:10 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-03-29 18:11:55 -0400
commit779c88c94c34bd3b521da97b456a1aa51d870dec (patch)
tree27134b77a04643b5d69bfd71b6411a3ef22279a3 /include/asm-generic/vmlinux.lds.h
parentc097877319ab61dd045b6497953b4e3df8f2bb44 (diff)
ARM: 8321/1: asm-generic: introduce .text.fixup input section
This introduces a new .text.fixup input section that gets emitted together with the .text section for each input object file. Note that *(.text) *(.text.fixup) is not the same as *(.text .text.fixup) and we are looking for the latter, to ensure that fixup snippets that are assembled into a separate section in the object file do not end up out of range for the relative branch instructions it contains if the .text section itself grows very large. This helps prevent linker failures on large ARM kernels. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r--include/asm-generic/vmlinux.lds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index ac78910d7416..463231d5bfc7 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -401,7 +401,7 @@
401#define TEXT_TEXT \ 401#define TEXT_TEXT \
402 ALIGN_FUNCTION(); \ 402 ALIGN_FUNCTION(); \
403 *(.text.hot) \ 403 *(.text.hot) \
404 *(.text) \ 404 *(.text .text.fixup) \
405 *(.ref.text) \ 405 *(.ref.text) \
406 MEM_KEEP(init.text) \ 406 MEM_KEEP(init.text) \
407 MEM_KEEP(exit.text) \ 407 MEM_KEEP(exit.text) \