From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1fR-000586-Ft for qemu-devel@nongnu.org; Tue, 26 Jan 2016 06:20:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO1fO-00083E-A5 for qemu-devel@nongnu.org; Tue, 26 Jan 2016 06:20:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1fO-00083A-5K for qemu-devel@nongnu.org; Tue, 26 Jan 2016 06:20:10 -0500 Date: Tue, 26 Jan 2016 12:20:04 +0100 From: Marc =?UTF-8?B?TWFyw60=?= Message-ID: <20160126122004.0798fd71@markmb_rh> In-Reply-To: <20160126111154.GA14533@stefanha-x1.localdomain> References: <1453727868-11147-1-git-send-email-markmb@redhat.com> <20160126111154.GA14533@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Stefan Hajnoczi Cc: "Gabriel L. Somlo" , qemu-devel@nongnu.org, Kevin O'Connor , Gerd Hoffmann , Paolo Bonzini , Laszlo On Tue, 26 Jan 2016 11:11:54 +0000 Stefan Hajnoczi wrote: > On Mon, Jan 25, 2016 at 02:17:48PM +0100, Marc Mar=C3=AD 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? I cannot give a precise explanation. But if I don't force an output type, I get this error: Building optionrom/linuxboot_dma.img ld: i386 architecture of input file `linuxboot_dma.o' is incompatible with i386:x86-64 output Marc