DragonFly BSD
DragonFly commits List (threaded) for 2011-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: Fix loading of a kernel that was linked with ld 2.20 on x86_64.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 19 Mar 2011 01:23:28 -0700 (PDT)

commit 0acedea88440426fcfbe1688bef28c756f4adb84
Author: Sascha Wildner <saw@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]