* [PATCH] x86 Boot enhancements, vmlinux.lds 2/9
@ 2002-04-03 16:02 Eric W. Biederman
0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 2002-04-03 16:02 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Linus, please apply.
This patch corrects the vmlinux so it correctly reports the physical
load address of the kernel at 1MB, and the actual kernel entry point.
This is done with a small change to the linker script and removal of
the incorrect command line linker entry point specification.
Eric
diff -uNr linux-2.5.7.boot2.boot_params/arch/i386/Makefile linux-2.5.7.boot2.vmlinuxlds/arch/i386/Makefile
--- linux-2.5.7.boot2.boot_params/arch/i386/Makefile Thu Apr 12 13:20:31 2001
+++ linux-2.5.7.boot2.vmlinuxlds/arch/i386/Makefile Tue Apr 2 11:44:16 2002
@@ -18,7 +18,7 @@
LD=$(CROSS_COMPILE)ld -m elf_i386
OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
-LDFLAGS=-e stext
+LDFLAGS=
LINKFLAGS =-T $(TOPDIR)/arch/i386/vmlinux.lds $(LDFLAGS)
CFLAGS += -pipe
diff -uNr linux-2.5.7.boot2.boot_params/arch/i386/vmlinux.lds linux-2.5.7.boot2.vmlinuxlds/arch/i386/vmlinux.lds
--- linux-2.5.7.boot2.boot_params/arch/i386/vmlinux.lds Sun Mar 10 20:09:08 2002
+++ linux-2.5.7.boot2.vmlinuxlds/arch/i386/vmlinux.lds Tue Apr 2 11:44:16 2002
@@ -3,7 +3,13 @@
*/
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)
-ENTRY(_start)
+physical_startup_32 = startup_32 - 0xC0000000;
+ENTRY(physical_startup_32)
+PHDRS
+{
+ text PT_LOAD AT(0x100000);
+
+}
SECTIONS
{
. = 0xC0000000 + 0x100000;
@@ -12,7 +18,7 @@
*(.text)
*(.fixup)
*(.gnu.warning)
- } = 0x9090
+ } :text = 0x9090
_etext = .; /* End of text section */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-03 16:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-03 16:02 [PATCH] x86 Boot enhancements, vmlinux.lds 2/9 Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox