Skip to contentSkip to conversation

ld: not enough headers (help needed)

Qemu-devel Renzo Davoli 2 participants 3 messages Nov 18, 2005

lore
Share & tools
lore
#0 lore raw

Am I the only one that gets the following error?

make[1]: Entering directory `/....../qemu/i386-user'
gcc-3.4 -g -Wl,-T,/home/renzo/tests/qemu/cvs/knew/qemu/ppc.ld -o
qemu-i386 elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o -lm
/usr/bin/ld: qemu-i386: Not enough room for program headers (allocated 8, need 9) /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/....../qemu/i386-user'
make: *** [all] Error 1

I use
GCC:
Reading specs from /usr/lib/gcc/powerpc-linux-gnu/3.4.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal,objc,ada --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --disable-softfloat --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --disable-softfloat powerpc-linux-gnu
Thread model: posix
gcc version 3.4.5 20051112 (prerelease) (Debian 3.4.4-10)

GNU ld version 2.16.91 20051110 Debian GNU/Linux

It is more than one month that I cannot build any new qemu (nor recompile previous versions).
I know that it seems a binutil problem, but it applies only to qemu.... Is there anybody out there that can give me a hint?

thank you in advance.
renzo

#1 lore raw
Quoted 1 line · Renzo Davoli

Am I the only one that gets the following error?

This works for me:

	perl -pi -e "s/SIZEOF_HEADERS/65536/g" *.ld

--L

#2 lore raw
Quoted 2 lines · Lennert Buytenhek

This works for me:

	perl -pi -e "s/SIZEOF_HEADERS/65536/g" *.ld

It has changed the error into (trying with gcc-3.4):
/usr/lib/gcc/powerpc-linux-gnu/3.4.5/../../../../lib/crt1.o:(.rodata+0x0):
undefined reference to `_SDA_BASE_'
or (gcc-3.3):
/usr/lib/gcc-lib/powerpc-linux-gnu/3.3.6/../../../crt1.o:(.rodata+0x0):
undefined reference to `_SDA_BASE_'

Any further suggestion, please?

renzo