qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ld: not enough headers (help needed)
@ 2005-11-18 14:33 Renzo Davoli
  2005-11-18 14:55 ` Lennert Buytenhek
  0 siblings, 1 reply; 3+ messages in thread
From: Renzo Davoli @ 2005-11-18 14:33 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] ld: not enough headers (help needed)
  2005-11-18 14:33 [Qemu-devel] ld: not enough headers (help needed) Renzo Davoli
@ 2005-11-18 14:55 ` Lennert Buytenhek
  2005-11-18 15:55   ` Renzo Davoli
  0 siblings, 1 reply; 3+ messages in thread
From: Lennert Buytenhek @ 2005-11-18 14:55 UTC (permalink / raw)
  To: qemu-devel

On Fri, Nov 18, 2005 at 03:33:37PM +0100, Renzo Davoli wrote:

> Am I the only one that gets the following error?

This works for me:

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


--L

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] ld: not enough headers (help needed)
  2005-11-18 14:55 ` Lennert Buytenhek
@ 2005-11-18 15:55   ` Renzo Davoli
  0 siblings, 0 replies; 3+ messages in thread
From: Renzo Davoli @ 2005-11-18 15:55 UTC (permalink / raw)
  To: qemu-devel

On Fri, Nov 18, 2005 at 03:55:11PM +0100, Lennert Buytenhek wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-18 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 14:33 [Qemu-devel] ld: not enough headers (help needed) Renzo Davoli
2005-11-18 14:55 ` Lennert Buytenhek
2005-11-18 15:55   ` Renzo Davoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).