From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvWRc-0002Tv-IX for qemu-devel@nongnu.org; Thu, 09 Feb 2012 11:02:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvWRX-0007BN-0D for qemu-devel@nongnu.org; Thu, 09 Feb 2012 11:02:00 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:62673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvWRW-0007BB-S2 for qemu-devel@nongnu.org; Thu, 09 Feb 2012 11:01:54 -0500 From: Paul Brook Date: Thu, 9 Feb 2012 16:01:50 +0000 References: <201202091336.36127.paul@codesourcery.com> <87zkcsnhit.fsf@frosties.localnet> In-Reply-To: <87zkcsnhit.fsf@frosties.localnet> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202091601.51141.paul@codesourcery.com> Subject: Re: [Qemu-devel] Support for multiboot images in elf64 (EM_X86_64) format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Goswin von Brederlow Cc: Stefan Hajnoczi , qemu-devel@nongnu.org > > "objcopy -I elf64-x86-64 -O elf32-i386 64.elf 32.elf" worked for me. > > Relocations get a bit confused, but you shouldn't have relocations in > > your multiboot images to start with. > > Why no relocations? Isn't exactly that the advantage of building an elf > image, that you can build a relocatable image? In this context I'd say no. The advantage of an ELF image is that it allows you to specify the entry point and load address. It also allows you to have multiple discontiguous data sections, which is often helpful. If you want to relocate images you need a dynamic loader capable of doing that relocation. The qemu loader is about the dumbest static loader possible. Paul