git: Fix loading of a kernel that was linked with ld 2.20 on x86_64.
Sascha Wildner
swildner at crater.dragonflybsd.org
Sat Mar 19 01:24:21 PDT 2011
commit 0acedea88440426fcfbe1688bef28c756f4adb84
Author: Sascha Wildner <saw at online.de>
Date: Fri Mar 18 22:05:22 2011 +0100
Fix loading of a kernel that was linked with ld 2.20 on x86_64.
The MAXPAGESIZE changed between binutils 2.17 and 2.20 from 0x100000
to 0x200000 for x86_64. But we have 0x100000 coded into our ldscript
for the kernel.
The real solution would be to specify "CONSTANT (MAXPAGESIZE)" in
the ldscript but unfortunately binutils 2.17 (at least our version;
later snapshots like 2.17.50 or 2.17.90 do) doesn't have support for
this keyword.
We will do that too once we get rid of binutils 2.17. Until then,
set max-page-size to 0x100000 as a workaround when linking on
x86_64.
Summary of changes:
sys/conf/kern.pre.mk | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0acedea88440426fcfbe1688bef28c756f4adb84
--
DragonFly BSD source repository
More information about the Commits
mailing list