From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOTBx-0002KU-SH for qemu-devel@nongnu.org; Wed, 27 Jan 2016 11:43:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOTBs-0001Og-Qq for qemu-devel@nongnu.org; Wed, 27 Jan 2016 11:43:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOTBs-0001Ob-L1 for qemu-devel@nongnu.org; Wed, 27 Jan 2016 11:43:32 -0500 Date: Wed, 27 Jan 2016 16:43:29 +0000 From: Stefan Hajnoczi Message-ID: <20160127164329.GO26163@stefanha-x1.localdomain> References: <1453727868-11147-1-git-send-email-markmb@redhat.com> <20160126111154.GA14533@stefanha-x1.localdomain> <20160126122004.0798fd71@markmb_rh> <1453807572.24277.22.camel@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qa0ccP92Gc0Ko3P8" Content-Disposition: inline In-Reply-To: <1453807572.24277.22.camel@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: "Gabriel L. Somlo" , qemu-devel@nongnu.org, Kevin O'Connor , Paolo Bonzini , Marc =?iso-8859-1?Q?Mar=ED?= , Laszlo --Qa0ccP92Gc0Ko3P8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 26, 2016 at 12:26:12PM +0100, Gerd Hoffmann wrote: > On Di, 2016-01-26 at 12:20 +0100, Marc Mar=ED wrote: > > On Tue, 26 Jan 2016 11:11:54 +0000 > > Stefan Hajnoczi wrote: > >=20 > > > On Mon, Jan 25, 2016 at 02:17:48PM +0100, Marc Mar=ED wrote: > > > > +linuxboot_dma.img: linuxboot_dma.o > > > > + $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m elf_i386 > > > > -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@") + > > > > %.img: %.o > > > > $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -Ttext 0 -e > > > > _start -s -o $@ $<," Building $(TARGET_DIR)$@") =20 > > >=20 > > > Why is -m elf_i386 necessary for linuxboot_dma.img but not for the > > > other *.img files? > >=20 > > I cannot give a precise explanation. But if I don't force an output > > type, I get this error: > >=20 > > Building optionrom/linuxboot_dma.img > > ld: i386 architecture of input file `linuxboot_dma.o' is incompatible > > with i386:x86-64 output >=20 > Any chance the linker needs -m32 too? I wonder why this isn't a problem for the existing firmware code. Are we really building x86_64 ELF files for our firmware? Stefan --Qa0ccP92Gc0Ko3P8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWqPOxAAoJEJykq7OBq3PIMb0H/j84l3mfG/g03la2ztDtypUL 65gTkkTogiNMd0HAs5jzx9KZSMqDGfoiY4jAinqtkZOGD4oXArSU2R/M7N9oGN0+ 5ohTFhn/ojnIa7WtI8TmMydAyaSLzv9EzClyAT3hTziwwxlGN9aY1vaqd+bvpspP +LrzE7XMxOBEyeQkEFLOJpZEi9ATRgw8+rQf3oPSCzh3mCEbpQ2valNTdcKDU+k9 SS6Rcln/ScWML/4afxSDgCPUzMWaCBnELfGRdKfxLc66cXWD4AN8u+2iFL1AuDE9 3extjvRH4iqzGtYbZllrI1W2L3vhigKVE7IxuIuR3A7DQYWYVsbgBzQmmNyul4w= =P2hw -----END PGP SIGNATURE----- --Qa0ccP92Gc0Ko3P8--