From: ebiederm@xmission.com (Eric W. Biederman)
To: Linus Torvalds <torvalds@transmeta.com>, Dave Jones <davej@suse.de>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.5.12] x86 Boot enhancements, linker fixes 2/11
Date: 02 May 2002 08:45:51 -0600 [thread overview]
Message-ID: <m1wuumy5eo.fsf@frodo.biederman.org> (raw)
In-Reply-To: <m11ycuzk4q.fsf@frodo.biederman.org>
diff -uNr linux-2.5.12.boot.boot_params/arch/i386/Makefile linux-2.5.12.boot.vmlinuxlds/arch/i386/Makefile
--- linux-2.5.12.boot.boot_params/arch/i386/Makefile Thu Apr 12 13:20:31 2001
+++ linux-2.5.12.boot.vmlinuxlds/arch/i386/Makefile Wed May 1 09:38:47 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.12.boot.boot_params/arch/i386/kernel/head.S linux-2.5.12.boot.vmlinuxlds/arch/i386/kernel/head.S
--- linux-2.5.12.boot.boot_params/arch/i386/kernel/head.S Mon Apr 29 00:17:11 2002
+++ linux-2.5.12.boot.vmlinuxlds/arch/i386/kernel/head.S Wed May 1 09:38:47 2002
@@ -41,7 +41,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
*/
diff -uNr linux-2.5.12.boot.boot_params/arch/i386/vmlinux.lds linux-2.5.12.boot.vmlinuxlds/arch/i386/vmlinux.lds
--- linux-2.5.12.boot.boot_params/arch/i386/vmlinux.lds Sun Mar 10 20:09:08 2002
+++ linux-2.5.12.boot.vmlinuxlds/arch/i386/vmlinux.lds Wed May 1 09:38:47 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 */
@@ -73,8 +79,16 @@
__bss_start = .; /* BSS */
.bss : {
*(.bss)
+ _end = . ;
+ /* Reserve space for the bootmem bitmap,
+ * With a start at 0xC0000000 this is just 32k in the worst case.
+ *
+ * Ideally this would be in an initdata segment but that causes
+ * problems with memory being reserved twice.
+ */
+ . = ALIGN(4096);
+ . = . + 32768;
}
- _end = . ;
/* Sections to be discarded */
/DISCARD/ : {
next prev parent reply other threads:[~2002-05-02 14:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-02 14:42 [PATCH 2.5.12] x86 Boot enhancements, boot params 1/11 Eric W. Biederman
2002-04-27 2:56 ` Pavel Machek
2002-05-06 10:13 ` Eric W. Biederman
2002-05-06 15:19 ` Pavel Machek
2002-05-06 17:55 ` Eric W. Biederman
2002-05-06 20:20 ` Pavel Machek
2002-05-02 14:45 ` Eric W. Biederman [this message]
2002-05-02 14:48 ` [PATCH 2.5.12] x86 Boot enhancements, bzImage/zImage code differentiation 3/11 Eric W. Biederman
2002-05-02 14:51 ` [PATCH 2.5.12] x86 Boot enhancements, constants 4/11 Eric W. Biederman
2002-05-02 14:55 ` [PATCH 2.5.12] x86 Boot enhancements, heap 5/11 Eric W. Biederman
2002-05-02 15:00 ` [PATCH 2.5.12] x86 Boot enhancements, 32bit entries 6/11 Eric W. Biederman
2002-04-27 4:53 ` Pavel Machek
2002-05-02 15:05 ` [PATCH 2.5.12] x86 Boot enhancements, footprint reduction 7/11 Eric W. Biederman
2002-05-02 15:07 ` [PATCH 2.5.12] x86 Boot enhancements, build beancounting 8/11 Eric W. Biederman
2002-05-02 15:11 ` [PATCH 2.5.12] x86 Boot enhancements, boot protocol 2.04 9/11 Eric W. Biederman
2002-05-02 15:13 ` [PATCH 2.5.12] x86 Boot enhancements, LinuxBIOS support 10/11 Eric W. Biederman
2002-05-02 15:15 ` [PATCH 2.5.12] x86 Boot enhancements, bzElf support 11/11 Eric W. Biederman
2002-05-02 20:45 ` H. Peter Anvin
2002-05-02 20:39 ` [PATCH 2.5.12] x86 Boot enhancements, boot protocol 2.04 9/11 H. Peter Anvin
2002-05-02 20:45 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1wuumy5eo.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.