This is the mail archive of the 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]

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


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 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.


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