Skip to content

Commit

Permalink
arm64: Fix linker script entry point
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geoff Levand authored and Catalin Marinas committed May 23, 2014
1 parent 0a42cb0 commit af885f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define ARM_EXIT_DISCARD(x) x

OUTPUT_ARCH(aarch64)
ENTRY(stext)
ENTRY(_text)

jiffies = jiffies_64;

Expand Down

0 comments on commit af885f4

Please sign in to comment.