From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZUByp-0005nd-2C for mharc-grub-devel@gnu.org; Tue, 25 Aug 2015 07:01:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUByj-0005nS-ND for grub-devel@gnu.org; Tue, 25 Aug 2015 07:01:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUByf-0006jP-Tb for grub-devel@gnu.org; Tue, 25 Aug 2015 07:01:21 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:26413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUByf-0006i2-Px for grub-devel@gnu.org; Tue, 25 Aug 2015 07:01:17 -0400 X-IronPort-AV: E=Sophos;i="5.15,745,1432598400"; d="scan'208";a="297691181" Message-ID: <55DC485D.4030904@citrix.com> Date: Tue, 25 Aug 2015 11:50:05 +0100 From: Andrew Cooper User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Daniel Kiper , Jan Beulich Subject: Re: [PATCH v2 10/23] efi: build xen.gz with EFI code References: <1437402558-7313-1-git-send-email-daniel.kiper@oracle.com> <1437402558-7313-11-git-send-email-daniel.kiper@oracle.com> <55D610DB020000780009C3F6@prv-mh.provo.novell.com> <20150822135919.GY7143@olila.local.net-space.pl> <55DB1D99020000780009CAAC@prv-mh.provo.novell.com> <20150824205445.GG7143@olila.local.net-space.pl> In-Reply-To: <20150824205445.GG7143@olila.local.net-space.pl> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.63 Cc: Juergen Gross , grub-devel@gnu.org, wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, phcoder@gmail.com, roy.franz@linaro.org, ning.sun@intel.com, david.vrabel@citrix.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, keir@xen.org, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2015 11:01:25 -0000 On 24/08/15 21:54, Daniel Kiper wrote: > >>>>> Currently, PE file contains many sections which are not "linear" (one >>>>> after another without any holes) or even do not have representation >>>>> in a file (e.g. BSS). In theory there is a chance that we could build >>>>> proper PE file using current build system. However, it means that >>>> What is "improper" about the currently built PE file? And if there is >>>> anything improper, did you inform the binutils maintainers of the >>>> problem? >>> From PE loader point of view everything is OK. However, current Xen PE >>> image (at least build on my machines) is not usable by multiboot (v1) >>> or multiboot2 protocol compatible loader because it is not linear (one >>> section does not live immediately after another without any voids). >> Again - either I'm missing something (and then your explanation is >> not good enough) or this is (as said above) a pointless adjustment. > Let's focus on multiboot2 protocol (multiboot (v1) is similar to multiboot2 > in discussed case). In general multiboot2 is able to load any file which has: > 1. proper multiboot2 header in first 32 KiB of a given file, > 2. "the text and data segments must be consecutive in the OS image" > (The Multiboot Specification version 1.6). What is the reasoning for the restriction in 2. ? ~Andrew