From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DsJyG-0000Jd-JF for qemu-devel@nongnu.org; Tue, 12 Jul 2005 08:34:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DsJuf-00075P-0t for qemu-devel@nongnu.org; Tue, 12 Jul 2005 08:31:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DsJu7-0006bx-6i for qemu-devel@nongnu.org; Tue, 12 Jul 2005 08:30:27 -0400 Received: from [81.103.221.48] (helo=mta08-winn.ispmail.ntl.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DsJnJ-0000Xa-4z for qemu-devel@nongnu.org; Tue, 12 Jul 2005 08:23:25 -0400 Received: from aamta12-winn.ispmail.ntl.com ([81.103.221.35]) by mta08-winn.ispmail.ntl.com with ESMTP id <20050712121536.KBPK889.mta08-winn.ispmail.ntl.com@aamta12-winn.ispmail.ntl.com> for ; Tue, 12 Jul 2005 13:15:36 +0100 Received: from m21-mp2.cvx1-b.bir.dial.ntli.net ([62.255.40.21]) by aamta12-winn.ispmail.ntl.com with ESMTP id <20050712121528.RJH4721.aamta12-winn.ispmail.ntl.com@m21-mp2.cvx1-b.bir.dial.ntli.net> for ; Tue, 12 Jul 2005 13:15:28 +0100 From: Michael Wetherell Subject: Re: [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64. Date: Tue, 12 Jul 2005 13:15:29 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507121315.29311.mike.wetherell@ntlworld.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tuesday 12 Jul 2005 11:59, Karel Gardas wrote: > > Qemu's trunk sources obtained from today CVS fails to compile on > > debian 3.1/amd64 platform. The error is: > > > > gcc -g -Wl,-T,/home/karel/cvs/qemu/qemu/x86_64.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:/home/karel/cvs/qemu/qemu/x86_64.ld:62: parse error > > collect2: ld returned 1 exit status > > short followup: exactly the same issue also hits qemu 0.7.0 release. Here's a suggested fix. Regards, Mike --- qemu-0.7.0.orig/x86_64.ld 2005-04-27 21:52:05.000000000 +0100 +++ qemu-0.7.0/x86_64.ld 2005-07-12 13:06:32.104978032 +0100 @@ -59,8 +59,6 @@ .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } .rodata1 : { *(.rodata1) } .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } - .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table) } /* Adjust the address for the data segment. We want to adjust up to the same address within the page on the next page up. */ . = ALIGN (0x100000) - ((0x100000 - .) & (0x100000 - 1)); . = DATA_SEGMENT_ALIGN (0x100000, 0x1000); @@ -86,8 +84,8 @@ .data1 : { *(.data1) } .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } - .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } - .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table) } + .eh_frame : { KEEP (*(.eh_frame)) } + .gcc_except_table : { *(.gcc_except_table) } .dynamic : { *(.dynamic) } .ctors : {