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

看板DFBSD_commit作者時間15年前 (2011/03/19 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1DX6e6P- (DFBSD_commit)