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/conf/ldscript.amd64 | |
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/conf/ldscript.amd64')
-rw-r--r-- | sys/conf/ldscript.amd64 | 2 |
1 files changed, 1 insertions, 1 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) } |