From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2B6H-0005jF-1V for qemu-devel@nongnu.org; Fri, 30 May 2008 16:21:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2B6F-0005il-H5 for qemu-devel@nongnu.org; Fri, 30 May 2008 16:21:20 -0400 Received: from [199.232.76.173] (port=52321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2B6F-0005ie-90 for qemu-devel@nongnu.org; Fri, 30 May 2008 16:21:19 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:48242) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2B6E-00043E-T8 for qemu-devel@nongnu.org; Fri, 30 May 2008 16:21:19 -0400 From: Paul Brook Subject: Re: [Qemu-devel] ARM host compile fix Date: Fri, 30 May 2008 21:21:13 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805302121.13900.paul@codesourcery.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 > > Also sparc-linux-user final link fails: > > /src/qemu/cpu-exec.c:609: relocation truncated to fit: R_ARM_PC24 > > against symbol `code_gen_prologue' defined in COMMON section in > > libqemu.a(exec.o) > > collect2: ld returned 1 exit status > > Yes, arm-linux-user fails with the same error because gcc doesn't > manage to make the call to code_gen_prologue. One solution is to wrap > the #define tcg_qemu_tb_exec in tcg/tcg.h in an #ifndef, and override > it tcg/arm/tcg-target.h with the same kind of call as was used before > introduction of prologue/epilogue which was possibly more optimal. Or tweak the linker script to place code_gen_prologue near to the code segment. Paul