This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failed to build linux-2.6.34-rc5 when CONFIG_RELOCATABLE=y using gold


On 05/04/10 01:32, Wenji Huang wrote:
> On 04/20/2010 04:44 PM, Wenji Huang wrote:
>> Hi,
>>
>> I tried gold as the linker to build linux-2.6.34-rc5 and found that
>> if I set CONFIG_RELOCATABLE=y, there will be warning like
>>
>> gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
>> GNU gold (GNU Binutils 2.20.1.20100303) 1.9
>>
>> HOSTCC arch/x86/boot/compressed/relocs
>> CC drivers/scsi/scsi_wait_scan.mod.o
>> CC fs/btrfs/btrfs.mod.o
>> HOSTCC arch/x86/boot/compressed/mkpiggy
>> RELOCS arch/x86/boot/compressed/vmlinux.relocs
>> CC fs/configfs/configfs.mod.o
>> WARNING: Absolute relocations present
>> Offset Info Type Sym.Value Sym.Name
>> c101b0d0 00a94b01 R_386_32 c1655000 __init_end
>> c101b0d5 00a94c01 R_386_32 c15d3000 __init_begin
>> c101b1be 00a94b01 R_386_32 c1655000 __init_end
>> c15df7ce 00a94b01 R_386_32 c1655000 __init_end
>> c15df7d4 00a94c01 R_386_32 c15d3000 __init_begin
>> c15df871 00a94b01 R_386_32 c1655000 __init_end
>> c15df876 00a94c01 R_386_32 c15d3000 __init_begin
>> c13b2848 00af1701 R_386_32 c155088c __start___kcrctab
>> c13b285c 00af1a01 R_386_32 c155088c __start___kcrctab_gpl
>> c13b2868 00af1b01 R_386_32 c155088c __start___ksymtab_gpl_future
>> c13b286c 00af1c01 R_386_32 c155088c __stop___ksymtab_gpl_future
>> c13b2870 00af1d01 R_386_32 c155088c __start___kcrctab_gpl_future
>>
>> GZIP arch/x86/boot/compressed/vmlinux.bin.gz
>>
>> And the built kernel can't start up. But if unset CONFIG_RELOCATABLE,
>> the warning will disappear and kernel can work well.
>>
>> Regards,
>> Wenji
> 
> Same result on 2.6.34-rc6, using gold of binutils 2.20.51 snapshots.
> But works well using ld instead.
> 
> Regards,
> Wenji

FYI:  a reported modprobe bug when using gold:
  https://bugzilla.kernel.org/show_bug.cgi?id=15466

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]