]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: move early boot code to the .init segment
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 30 Mar 2016 15:43:07 +0000 (17:43 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 14 Apr 2016 17:11:30 +0000 (18:11 +0100)
commit08732e8ce22803fc553aa2ef783c6fbb5d3eb6cd
treee778a9304a332f72f505490ed19d9178fd3b3541
parentbbf65a9edc9d6750613ed348ba6ae9804ff67e77
arm64: move early boot code to the .init segment

Apart from the arm64/linux and EFI header data structures, there is nothing
in the .head.text section that must reside at the beginning of the Image.
So let's move it to the .init section where it belongs.

Note that this involves some minor tweaking of the EFI header, primarily
because the address of 'stext' no longer coincides with the start of the
.text section. It also requires a couple of relocated symbol references
to be slightly rewritten or their definition moved to the linker script.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/efi-entry.S
arch/arm64/kernel/head.S
arch/arm64/kernel/image.h