diff options
author | Geoff Levand <geoff@infradead.org> | 2014-05-16 13:26:01 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-05-23 10:32:03 -0400 |
commit | af885f4022622331f17227dfcfbb2dafdee25a43 (patch) | |
tree | 322e18c0718c576cb2a62a533a6546b6655c2f9c /arch/arm64 | |
parent | 0a42cb0a6fa64cb17db11164a1ad3511b43acefe (diff) |
arm64: Fix linker script entry point
Change the arm64 linker script ENTRY() command to define _text as the
kernel entry point.
The arm64 boot protocol specifies that the kernel must be entered at the
beginning of the kernel image. The existing ENTRY() command defined the
symbol stext as the entry point, which emitted an incorrect entry point,
but would not cause a runtime error because the existing entry code
immediately jumps to stext.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/vmlinux.lds.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index 4ba7a55b49c7..f1e6d5c032e1 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S | |||
@@ -13,7 +13,7 @@ | |||
13 | #define ARM_EXIT_DISCARD(x) x | 13 | #define ARM_EXIT_DISCARD(x) x |
14 | 14 | ||
15 | OUTPUT_ARCH(aarch64) | 15 | OUTPUT_ARCH(aarch64) |
16 | ENTRY(stext) | 16 | ENTRY(_text) |
17 | 17 | ||
18 | jiffies = jiffies_64; | 18 | jiffies = jiffies_64; |
19 | 19 | ||