From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: Re: [PATCH v3 2/5] arm/config: Declare ELFSIZE_[32|64] respectively. Date: Fri, 12 Feb 2016 11:26:10 +0000 Message-ID: References: <1455246507-5589-1-git-send-email-konrad.wilk@oracle.com> <1455246507-5589-3-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aUBrx-0001jV-6P for xen-devel@lists.xenproject.org; Fri, 12 Feb 2016 11:26:37 +0000 In-Reply-To: <1455246507-5589-3-git-send-email-konrad.wilk@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 11 Feb 2016, Konrad Rzeszutek Wilk wrote: > Otherwise any code that tries to use Elf_* macros instead of > Elf32_ or Elf_64 fails to compile. > > CC: ian.campbell@citrix.com > CC: wei.liu2@citrix.com > CC: stefano.stabellini@citrix.com > Signed-off-by: Konrad Rzeszutek Wilk > --- > xen/include/asm-arm/config.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h > index bd832df..4ea66bf 100644 > --- a/xen/include/asm-arm/config.h > +++ b/xen/include/asm-arm/config.h > @@ -15,8 +15,10 @@ > > #if defined(CONFIG_ARM_64) > # define LONG_BYTEORDER 3 > +# define ELFSIZE 64 > #else > # define LONG_BYTEORDER 2 > +# define ELFSIZE 32 > #endif I wonder if we should use ELF64 on ARM32 too, for simplicity (x86 only uses ELF64) and because ARM32 is LPAE.