On 2016.03.17 at 08:03 +0100, Ard Biesheuvel wrote: > On 16 March 2016 at 22:25, Markus Trippelsdorf wrote: > > Since: > > commit 2213e9a66bb87d8344a1256b4ef568220d9587fb > > Author: Ard Biesheuvel > > Date: Tue Mar 15 14:58:19 2016 -0700 > > > > kallsyms: add support for relative offsets in kallsyms address table > > > > kernels linked with ld.gold are broken: > > > > Could you elaborate? I tried building x86_64_defconfig with > -fuse-ld=gold added to LDFLAGS, and it builds fine. > > Could you share your config, please? And instructions how to invoke > the gold linker? I'm using gold trunk and ld.gold is my system linker (just a hard link to ld). My config is attached. (For testing I use the following qemu command: qemu-system-x86_64 -s -enable-kvm -net nic,vlan=0,model=virtio -net user -fsdev local,security_model=none,id=root,path=/ -device virtio-9p-pci,id=root,fsdev=root,mount_tag=/dev/root -m 512 -smp 2 -kernel /usr/src/linux/arch/x86/boot/bzImage -nographic -append "init=/bin/zsh root=/dev/root console=ttyS0 kgdboc=ttyS0 rootflags=rw,trans=virtio rootfstype=9p ip=dhcp earlyprintk=ttyS0" ) > > KSYM .tmp_kallsyms1.o > > kallsyms failure: relative symbol value 0xffffffff810002a0 out of range in relative mode > > KSYM .tmp_kallsyms2.o > > kallsyms failure: relative symbol value 0xffffffff810002a0 out of range in relative mode > > LD vmlinux > > > > They die early during boot: > > > > Note that there is a patch queued in the kbuild tree to at least abort > the build if such failures happens. Yes. That would be much better. -- Markus