arm64: Fix linker script entry point
authorGeoff Levand <geoff@infradead.org>
Fri, 16 May 2014 17:26:01 +0000 (18:26 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 24 Oct 2014 10:39:39 +0000 (11:39 +0100)
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>
(cherry picked from commit af885f4022622331f17227dfcfbb2dafdee25a43)
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm64/kernel/vmlinux.lds.S

index 55d0e035205f0156e6b272ac6fe9fd83c6ea4fa8..de93a4bbdb7c7741dfc230b1bfa3c0c7a1c633ad 100644 (file)
@@ -13,7 +13,7 @@
 #define ARM_EXIT_DISCARD(x)    x
 
 OUTPUT_ARCH(aarch64)
-ENTRY(stext)
+ENTRY(_text)
 
 jiffies = jiffies_64;