arm64: Fix linker script entry point
authorGeoff Levand <geoff@infradead.org>
Fri, 16 May 2014 17:26:01 +0000 (18:26 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 23 May 2014 14:32:03 +0000 (15:32 +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>
arch/arm64/kernel/vmlinux.lds.S

index 4ba7a55b49c7efa9da4336dc7ad54074a773eba0..f1e6d5c032e11caf6e0656ad651b0ead4577aab4 100644 (file)
@@ -13,7 +13,7 @@
 #define ARM_EXIT_DISCARD(x)    x
 
 OUTPUT_ARCH(aarch64)
-ENTRY(stext)
+ENTRY(_text)
 
 jiffies = jiffies_64;
 
This page took 0.030499 seconds and 5 git commands to generate.