qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QEMU static build failing with recent toolchain
@ 2006-10-30  0:27 Anderson Lizardo
  0 siblings, 0 replies; only message in thread
From: Anderson Lizardo @ 2006-10-30  0:27 UTC (permalink / raw)
  To: qemu-devel

Hi,

QEMU static build (both 0.8.2 and CVS) is failing using a recent
toolchain with this message:

gcc-3.4 -g -static -Wl,-T,/tmp/qemu-cvs-20061029/i386.ld -o qemu-arm
main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o elfload.o
linuxload.o flatload.o nwfpe/fpa11.o nwfpe/fpa11_cpdo.o
nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o
nwfpe/single_cpdo.o nwfpe/double_cpdo.o nwfpe/extended_cpdo.o
arm-semi.o libqemu.a gdbstub.o   -lm
/usr/bin/ld: BFD 2.17 Debian GNU/Linux assertion fail
../../binutils-2.17/bfd/elf.c:3878
/usr/bin/ld: qemu-arm: Not enough room for program headers (allocated 5, need 6)
 Section to Segment mapping:
  Segment              Sections...
  00:           LOAD:  .note.ABI-tag .init .text __libc_freeres_fn
.fini .rodata .rodata.cst4 .eh_frame .rodata.str1.1 .rodata.str1.4
.rodata.str4.4 .gcc_except_table __libc_subfreeres __libc_atexit
.rodata.str1.32
  01:           LOAD:  .data .jcr .data.rel.ro .tdata .ctors .dtors .got .bss
  02:           LOAD:  .tbss __libc_freeres_ptrs
  03:           NOTE:  .note.ABI-tag
  04:            TLS:  .tdata .ctors
  05:          STACK:
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [qemu-arm] Error 1
make: Leaving directory `/tmp/qemu-cvs-20061029/arm-user'

I've tested removing the linker script option
"-Wl,-T,<src_dir>/i386.ld" and it compiled fine. Maybe this script is
broken or is not necessary for recent binutils versions?

Information about my system:

- x86 host
- gcc-3.4 (GCC) 3.4.6 (Ubuntu 3.4.6-3ubuntu1)
- glibc 2.4
- binutils 2.17

Regards,
-- 
Anderson Lizardo

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-30  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30  0:27 [Qemu-devel] QEMU static build failing with recent toolchain Anderson Lizardo

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