]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8321/1: asm-generic: introduce .text.fixup input section
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 24 Mar 2015 09:39:10 +0000 (10:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Mar 2015 22:11:55 +0000 (23:11 +0100)
commitf06507ee5486239d91bf3be166d9175a31806597
tree27134b77a04643b5d69bfd71b6411a3ef22279a3
parenta16f1f873d3d0158174dc5aabbb383b00d15fd4e
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>
include/asm-generic/vmlinux.lds.h