[lkml]   [2012]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectTrying to make a working kernel with the gold linker

So I was trying to see if I could make the kernel build with the gold
linker (since until it can, I can't install it on my system).

I saw a message from HJ indicating one of the problems was x86_64 gold
used an incompatible max-page-size setting, so I tried changing it in
hopes that would make a bootable kernel.

No dice, it didn't work. (At least not with a 2.20 binutils-gold.)

Does anybody know what the other issues with the gold linker? Is the
2.22 binutils-gold more likely to work?


- Ted

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 41a7237..ad769ed 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -119,7 +119,11 @@ asinstr := $(call as-instr,fxsaveq (%rax),-DCONFIG_AS_FXSAVEQ=1)
KBUILD_AFLAGS += $(cfi) $(cfi-sigframe) $(cfi-sections) $(asinstr)
KBUILD_CFLAGS += $(cfi) $(cfi-sigframe) $(cfi-sections) $(asinstr)

+ifeq ($(CONFIG_X86_32),y)
+LDFLAGS := -m elf_$(UTS_MACHINE) -z max-page-size=0x200000

# Speed up the build

 \ /
  Last update: 2012-04-11 04:25    [W:0.064 / U:5.892 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site