From bad9f4c53148a65138128ad8683d689535eca878 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 19 Feb 2007 22:30:48 +0000 Subject: 2007-02-19 Thomas Schwinge * Makefile.am (gnumach_LINKFLAGS): New variable. (gnumach_LINK): Use that one instead of the previously used `LINKFLAGS_gnumach'. * i386/Makefrag.am (LINKFLAGS_gnumach): Rename to `gnumach_LINKFLAGS', move into [PLATFORM_at] and pass `_START'. * i386/ldscript: Don't hardcode a _start address of 0x100000, but make it configurable via `_START'. --- i386/ldscript | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'i386/ldscript') diff --git a/i386/ldscript b/i386/ldscript index 19a5c76..2195af3 100644 --- a/i386/ldscript +++ b/i386/ldscript @@ -47,10 +47,12 @@ SECTIONS } =0x90909090 .plt : { *(.plt) } /* - * _start needs to be at 0x100000, so that's where .text will be begin - * and .text.start will be first in there. See also i386/i386at/boothdr.S. + * There are specific requirements about entry points, so we have it + * configurable via `_START': `.text' will begin there and `.text.start' will + * be first in there. See also `i386/i386at/boothdr.S' and + * `LINKFLAGS_gnumach' in `i386/Makefrag.am'. */ - . = 0x100000; + . = _START; .text : { *(.text.start) -- cgit v1.2.3