From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHEkw-00045p-VU for qemu-devel@nongnu.org; Thu, 18 Jun 2009 06:22:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHEkr-0003xs-L8 for qemu-devel@nongnu.org; Thu, 18 Jun 2009 06:22:05 -0400 Received: from [199.232.76.173] (port=53324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHEkr-0003xK-Ax for qemu-devel@nongnu.org; Thu, 18 Jun 2009 06:22:01 -0400 Received: from mx20.gnu.org ([199.232.41.8]:20312) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHEkq-00084D-TK for qemu-devel@nongnu.org; Thu, 18 Jun 2009 06:22:01 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHEkq-0006zs-2E for qemu-devel@nongnu.org; Thu, 18 Jun 2009 06:22:00 -0400 Message-ID: <4A3A14BC.1070902@redhat.com> Date: Thu, 18 Jun 2009 12:19:40 +0200 From: Paolo Bonzini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 4/4] Multiboot build system References: <1245250604-6291-1-git-send-email-agraf@suse.de> <1245250604-6291-4-git-send-email-agraf@suse.de> <1245250604-6291-5-git-send-email-agraf@suse.de> <200906171616.17033.paul@codesourcery.com> <6824D4E6-A3D6-41FB-A5D9-5903CA993D34@suse.de> <4A39F384.3030109@gmail.com> <23AB4AED-56E3-4780-A487-56132D8D3593@suse.de> In-Reply-To: <23AB4AED-56E3-4780-A487-56132D8D3593@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Kevin Wolf , Paolo Bonzini , Rene Rebe , Paul Brook , qemu-devel >>> The relocations are always an issue. If you know about a magic >>> compiler option that tells the compiler "scream of you find >>> relocations", please tell me. >> >> You can do a normal ELF link and use readelf on the output. > > Hm I just tried to put in an external relocation (mov %eax, FOO) and ld > already complained about it. > What issue exactly were you talking about Paul? Just in case you were confusing Paolo B. (me) with Paul B., my suggestion was just a way to find relocations assuming ld would not complain. Possibly Paul's (his) observation does not apply to binary output. Paolo