diff options
author | peter <peter@FreeBSD.org> | 2001-09-18 01:12:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-18 01:12:43 +0000 |
commit | 8db35d7be030c0a94657b28ba5d0ea1f41e61bdc (patch) | |
tree | de1312d48e262d76713968e0d34792242cf5ab8c /sys | |
parent | 2748b592895299d92eeef3189052b05c8d52e41c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/conf/ldscript.amd64 | 2 | ||||
-rw-r--r-- | sys/conf/ldscript.i386 | 2 |
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) } |