This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Gold] problem building linux kernel
On 2010.11.16 at 07:52 -0800, Ian Lance Taylor wrote:
> Markus Trippelsdorf <markus@trippelsdorf.de> writes:
>
> > Gold produces a malformed vmlinux file with this command:
>
> In what way is the vmlinux file malformed?
Insofar as the this command normaly succeeds, but fails with the vmlinux
linked with gold:
(good)
% objcopy -v -R .comment -S vmlinux arch/x86/boot/compressed/vmlinux.bin
copy from `vmlinux' [elf64-x86-64] to `arch/x86/boot/compressed/vmlinux.bin' [elf64-x86-64]
(bad)
% objcopy -R .comment -S vmlinux 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
--
Markus