summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-09-18 01:12:43 +0000
committerpeter <peter@FreeBSD.org>2001-09-18 01:12:43 +0000
commit8db35d7be030c0a94657b28ba5d0ea1f41e61bdc (patch)
treede1312d48e262d76713968e0d34792242cf5ab8c /sys/conf
parent2748b592895299d92eeef3189052b05c8d52e41c (diff)
downloadFreeBSD-src-8db35d7be030c0a94657b28ba5d0ea1f41e61bdc.zip
FreeBSD-src-8db35d7be030c0a94657b28ba5d0ea1f41e61bdc.tar.gz
Remove hard coded magic load address. Now to change the load address,
we just have to change the pmap.h constants and ld will automatically adapt based on the "kernbase" symbol.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/ldscript.amd642
-rw-r--r--sys/conf/ldscript.i3862
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64
index a42b8fa..41360ea 100644
--- a/sys/conf/ldscript.amd64
+++ b/sys/conf/ldscript.amd64
@@ -6,7 +6,7 @@ SEARCH_DIR(/usr/lib);
SECTIONS
{
/* Read-only sections, merged into text segment: */
- . = 0xc0100000 + SIZEOF_HEADERS;
+ . = kernbase + 0x00100000 + SIZEOF_HEADERS;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
diff --git a/sys/conf/ldscript.i386 b/sys/conf/ldscript.i386
index a42b8fa..41360ea 100644
--- a/sys/conf/ldscript.i386
+++ b/sys/conf/ldscript.i386
@@ -6,7 +6,7 @@ SEARCH_DIR(/usr/lib);
SECTIONS
{
/* Read-only sections, merged into text segment: */
- . = 0xc0100000 + SIZEOF_HEADERS;
+ . = kernbase + 0x00100000 + SIZEOF_HEADERS;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
OpenPOWER on IntegriCloud