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

Wenji Huang wenji.huang@oracle.com
Tue Apr 20 08:48:00 GMT 2010


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



More information about the Binutils mailing list