[Gold] problem building linux kernel
Doug Kwan (關振德)
dougkwan@google.com
Tue Nov 16 07:31:00 GMT 2010
What are the versions of gold and the kernel?
-Doug
On Mon, Nov 15, 2010 at 11:07 PM, Markus Trippelsdorf
<markus@trippelsdorf.de> wrote:
> I use gold as the default linker here and it's working fine except when
> I build the linux kernel:
>
> LD drivers/built-in.o
> LD vmlinux.o
> MODPOST vmlinux.o
> WARNING: modpost: Found 6 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> GEN .version
> CHK include/generated/compile.h
> UPD include/generated/compile.h
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> KSYM .tmp_kallsyms1.S
> AS .tmp_kallsyms1.o
> LD .tmp_vmlinux2
> KSYM .tmp_kallsyms2.S
> AS .tmp_kallsyms2.o
> LD vmlinux
> SYSMAP System.map
> SYSMAP .tmp_System.map
> CC arch/x86/boot/a20.o
> AS arch/x86/boot/bioscall.o
> CC arch/x86/boot/cmdline.o
> AS arch/x86/boot/copy.o
> HOSTCC arch/x86/boot/mkcpustr
> CC arch/x86/boot/cpucheck.o
> CC arch/x86/boot/early_serial_console.o
> CC arch/x86/boot/edd.o
> VOFFSET arch/x86/boot/voffset.h
> CC arch/x86/boot/main.o
> CC arch/x86/boot/mca.o
> LDS arch/x86/boot/compressed/vmlinux.lds
> AS arch/x86/boot/compressed/head_64.o
> CC arch/x86/boot/memory.o
> CC arch/x86/boot/compressed/misc.o
> CC arch/x86/boot/pm.o
> CC arch/x86/boot/compressed/string.o
> CC arch/x86/boot/compressed/cmdline.o
> CC arch/x86/boot/compressed/early_serial_console.o
> AS arch/x86/boot/pmjump.o
> CC arch/x86/boot/printf.o
> CC arch/x86/boot/regs.o
> OBJCOPY arch/x86/boot/compressed/vmlinux.bin
> BFD: arch/x86/boot/compressed/vmlinux.bin: warning: allocated section `.data..percpu' not in segment
> objcopy:arch/x86/boot/compressed/vmlinux.bin[.text]: File truncated
> objcopy:arch/x86/boot/compressed/vmlinux.bin: File truncated
> make[2]: *** [arch/x86/boot/compressed/vmlinux.bin] Error 1
> make[2]: *** Waiting for unfinished jobs....
>
> So I'm forced to use "make LD=/usr/bin/ld.bfd" to get around this error.
>
> Would it be hard to fix this issue in gold or is this a kernel side
> problem?
>
> --
> Markus
>
>
More information about the Binutils
mailing list