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: Error when building 2.6.35-rc3 kernel using latest gold


Your fixdep binary has no ELF header.  I don't know why that happens.
I tried building the kernel on a 64-bit machine and it worked fine.  I
will try using a 32-bit ubuntu machine.

-Doug

$ od -Ax -tx1 fixdep  | head

000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
000030 00 00 00 00 06 00 00 00 34 00 00 00 34 80 04 08
000040 34 80 04 08 00 01 00 00 00 01 00 00 04 00 00 00
000050 04 00 00 00 03 00 00 00 34 01 00 00 34 81 04 08
000060 34 81 04 08 13 00 00 00 13 00 00 00 04 00 00 00
000070 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08
000080 00 80 04 08 80 11 00 00 80 11 00 00 05 00 00 00
000090 00 10 00 00 01 00 00 00 80 11 00 00 80 a1 04 08
0000a0 80 a1 04 08 48 01 00 00 6c 01 00 00 06 00 00 00


2010/6/12 Wenji Huang <wenji.huang@oracle.com>:
> Hi,
>
> I got the following error when building linux 2.6.35-rc3 kernel using latest
> gold.
>
> [linux-2.6.35-rc3]$ make menuconfig
> ?HOSTCC ?scripts/basic/fixdep
> /bin/sh: scripts/basic/fixdep: cannot execute binary file
> make[1]: *** [scripts/basic/fixdep] Error 126
> make: *** [scripts_basic] Error 2
>
> [linux-2.6.35-rc3]$ gcc -v
> Using built-in specs.
> Target: i386-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
> --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
> [linux-2.6.35-rc3]$ ld -v
> GNU gold (GNU Binutils 2.20.51.20100613) 1.9
>
> It seems the generated binary fixdep is corrupt. But it works fine when
> using Gnu ld.
>
> Regards,
> Wenji
>


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