Commit f9822eca authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] make startup_32 kernel entry point

Patch from Andrey Panin <pazke@orbita1.ru>

This patch marks startup_32 (in head.S) as kernel entry point,
visws kernel loader uses raw elf kernel images and entry point
at stext causes jump to wrong address.
parent 93e64a97
......@@ -17,7 +17,7 @@
LDFLAGS := -m elf_i386
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
LDFLAGS_vmlinux := -e stext
LDFLAGS_vmlinux :=
LDFLAGS_BLOB := --format binary --oformat elf32-i386
CFLAGS += -pipe
......
......@@ -42,7 +42,7 @@
*
* On entry, %esi points to the real-mode code as a 32-bit pointer.
*/
startup_32:
ENTRY(startup_32)
/*
* Set segments to known values
*/
......
......@@ -6,7 +6,7 @@
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
ENTRY(startup_32)
jiffies = jiffies_64;
SECTIONS
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment