From patchwork Fri Mar 30 17:02:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 7552 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C674F1991DE for ; Fri, 30 Mar 2012 17:03:05 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8ACB4A180BD for ; Fri, 30 Mar 2012 17:03:05 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so1574415obb.11 for ; Fri, 30 Mar 2012 10:03:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-forwarded-to:x-forwarded-for:delivered-to :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=TSXgukHhxIdVBp0v58XFcR6iyZyAyVow8zsZ5JuO4q4=; b=oDGaAOeLlCyu/ssQL8VsUEAH0HzGBBEI8TnRnX+C1bKtoLSxSRMQfYYNGgNM4Q1n6R e+HaqltLGf309p10dIwGmicpMKqNtme/eRXmQ3d4AQz20To9EGkkuYq9xED7m+CDuQp2 UTAD/JFOdQuJvGSL1qiZwZFFDixpYqVp6vQ+FXN8HIHw5G6vEOfHcdJTwwV+g8D2yvnI xvXWs0x/DCB9BMg1M0dwN/Gtvvqxsyir1H6v2D8ThJecgfv9lJsdWIsX2sVg+TnrXgVv n1NpxNEaRsRdbk4Jj8qpftTLyKR9WACPCnktabWOFY5XLe7ldyi0gZ4K+7O0irJnXK8Z BacQ== MIME-Version: 1.0 Received: by 10.50.163.42 with SMTP id yf10mr36242igb.0.1333126984762; Fri, 30 Mar 2012 10:03:04 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.5.205 with SMTP id 13csp5339ibw; Fri, 30 Mar 2012 10:03:03 -0700 (PDT) Received: by 10.14.96.6 with SMTP id q6mr829082eef.64.1333126982405; Fri, 30 Mar 2012 10:03:02 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id s65si10529081weq.137.2012.03.30.10.03.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Mar 2012 10:03:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SDfDu-00015L-T5; Fri, 30 Mar 2012 18:02:50 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: Paul Brook , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Riku Voipio , patches@linaro.org Subject: [PATCH v2 1/2] elf.h: Update EF_ARM_ constants to newer ABI versions Date: Fri, 30 Mar 2012 18:02:49 +0100 Message-Id: <1333126970-4144-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1333126970-4144-1-git-send-email-peter.maydell@linaro.org> References: <1333126970-4144-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQkQuzxDsk2PMpxoMTkQZr9pt5JvRuaIaVbAOgkw59Oc+K0K/iSd8uy/evOyHzdR5aSEBwOH Update the EF_ARM_* constants (for the ELF header e_flags field) to include the newer flags specified for later versions of the ABI. (This set of constants is from include/elf/arm.h from binutils-2.17 and so licensed under GPL-v2-or-later.) Signed-off-by: Peter Maydell --- elf.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/elf.h b/elf.h index 36bcac4..e1422b8 100644 --- a/elf.h +++ b/elf.h @@ -538,6 +538,27 @@ typedef struct { #define EF_ALIGN8 0x40 /* 8-bit structure alignment is in use */ #define EF_NEW_ABI 0x80 #define EF_OLD_ABI 0x100 +#define EF_ARM_SOFT_FLOAT 0x200 +#define EF_ARM_VFP_FLOAT 0x400 +#define EF_ARM_MAVERICK_FLOAT 0x800 + +/* Other constants defined in the ARM ELF spec. version B-01. */ +#define EF_ARM_SYMSARESORTED 0x04 /* NB conflicts with EF_INTERWORK */ +#define EF_ARM_DYNSYMSUSESEGIDX 0x08 /* NB conflicts with EF_APCS26 */ +#define EF_ARM_MAPSYMSFIRST 0x10 /* NB conflicts with EF_APCS_FLOAT */ +#define EF_ARM_EABIMASK 0xFF000000 + +/* Constants defined in AAELF. */ +#define EF_ARM_BE8 0x00800000 +#define EF_ARM_LE8 0x00400000 + +#define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK) +#define EF_ARM_EABI_UNKNOWN 0x00000000 +#define EF_ARM_EABI_VER1 0x01000000 +#define EF_ARM_EABI_VER2 0x02000000 +#define EF_ARM_EABI_VER3 0x03000000 +#define EF_ARM_EABI_VER4 0x04000000 +#define EF_ARM_EABI_VER5 0x05000000 /* Additional symbol types for Thumb */ #define STT_ARM_TFUNC 0xd