Fix loading of a kernel that was linked with ld 2.20 on x86_64.
authorSascha Wildner <saw@online.de>
Fri, 18 Mar 2011 21:05:22 +0000 (22:05 +0100)
committerSascha Wildner <saw@online.de>
Sat, 19 Mar 2011 08:23:18 +0000 (09:23 +0100)
commit0acedea88440426fcfbe1688bef28c756f4adb84
tree3c26bcadca4d07370adf1e18358c4d1d462c5c6f
parent82011fa5f8b50d29a1ddbc45a28774edf7dfbacf
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.
sys/conf/kern.pre.mk