]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8028/1: move __fixup_smp out of init section
authorRob Herring <robh@kernel.org>
Wed, 16 Apr 2014 14:38:26 +0000 (15:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 May 2014 22:46:51 +0000 (23:46 +0100)
commit0b0e7f1555e56e776b149c6a71f3939366200dec
tree8d12dcbffddcecd66b5c785ecee46a535e66f514
parent310dc80c46e4eb4f028cfbf936fc164e2293269a
ARM: 8028/1: move __fixup_smp out of init section

With large kernel builds such as allyesconfig exceeding maximum relative
branch offsets, the init section will be too far away to branch to
directly. This causes veneers to be added by the linker, but veneers
don't work before the MMU is enabled. Fix this by moving __fixup_smp to
the .head.text section as it is not very big.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S