From patchwork Thu Aug 9 15:54:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 143867 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2261595ljj; Thu, 9 Aug 2018 08:54:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxNief4Ka/dZVfDxFvzA4rvPYXX1mVReenv0oP0f9t1/bJW0hYlzB6qNzhtedUUtluRe7nN X-Received: by 2002:a63:e647:: with SMTP id p7-v6mr2680543pgj.218.1533830095435; Thu, 09 Aug 2018 08:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533830095; cv=none; d=google.com; s=arc-20160816; b=ku0LzV2EGubC8/5eYyOVsM9Ig4hf44QWie+g73EzMeSVMD+Q91zKKrRhwoaO+7F0R1 SlZP/aTyoqXuGLQhUi51277+BTPuskBIEVmf4zI+w8OKES9UtrI/QEWD9Eq7h//0dOW/ GyNm2VWv+2ywHF4SfzfBpXti6vveTrJsxmBBtX1oWaOMnswBG/1aOqgEVaeSxy0Y3EPT rKIldRe5Hmbw/qd1Ln7UDCgvdQhKriy4W8pmGTcerXBS3OMgoiGcUPopt0idqDKdJhNW +hh2F1cvyavs2zLsEZcd2k167qrVnokihdMMaL/bth+hcPQLi1z8NUsLo9aczNhE7BBP COKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:openpgp:subject:from:to :delivered-to:sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=CJLokwqRT32k4v5ac4nuCEgGkz0edKxDHWvC11PZsVg=; b=y/dQSZsLGXGIa43ezWp8bZhYpiNrMjE6pbBEr64ABtsp3XirwXbh+pWK0hnxSERynE amXQFRybI8J15qWacTLdj52FQSWfa/mOVUPWaJBqGgbHYFhZPrPV3LS5+zJMF5Kd1kjP KNL00Yu3y8TCCjhRZcdML4we2cl2J/N2MELzt3n436cCsTKo6mIrWdZwZIA4tvXT0px0 NRr02ptDSupREhDayMYxlmyx9fKy5fMRTESVtC0XE/pp6Ylm5EDpi75nOiLq+oLEEEbV wfyyLCA+S6gAPNLAhUsrQ+fK5dUMxyt5vOuzUQsGc82X5ZT/OuLVydwR0XSb1Gy4opB2 s2rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Z+K0Liqx; spf=pass (google.com: domain of gdb-patches-return-149666-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gdb-patches-return-149666-patch=linaro.org@sourceware.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id t6-v6si5782130plq.268.2018.08.09.08.54.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 08:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-return-149666-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Z+K0Liqx; spf=pass (google.com: domain of gdb-patches-return-149666-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gdb-patches-return-149666-patch=linaro.org@sourceware.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; q=dns; s=default; b=UGyZc2+XwsqD17Raj+u0ZXqAU49Yc sYEfTiDcx3yhzh5XnsK5szAqqaDOlZY3AXqR2ZI6JIPjFgQMzBZ2PwYu+DkXhO6w YSy7Bn860l14K88Boi/BNsJZ9gvZLmnWpO3Qy7hnpVHLO1seOTOFXTNIVmCvvNln +yQ+VbBZZ1rnq8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; s=default; bh=Ejt7XpwMOE29TBi4/uCVn58Ui9o=; b=Z+K 0LiqxsdrNyHIJ9Hr8jzTG4LjLm5ggiTeoXGrX7oF1BE/vN1foEvDdsl4T/mMczis 9XnWZrIG9f2nxjcUC6bTZIn36slCCNR/+sqodHCJCFfZUTSi0fxha1hLVKBfF3Jv olHR1I81FMPbSnAao0kO9FtSTmPF9HNw3VRIW+QE= Received: (qmail 119828 invoked by alias); 9 Aug 2018 15:54:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 119804 invoked by uid 89); 9 Aug 2018 15:54:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=ubiquitous X-HELO: foss.arm.com Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Aug 2018 15:54:45 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A4DA67A9; Thu, 9 Aug 2018 08:54:43 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.207.74]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0BAC53F5B3; Thu, 9 Aug 2018 08:54:42 -0700 (PDT) To: binutils@sourceware.org, gdb-patches@sourceware.org From: "Richard Earnshaw (lists)" Subject: arm - Add some comments about the versions of ARM ELF that define various e_flags values Openpgp: preference=signencrypt Message-ID: <806c63e3-1f7b-954b-6a62-4de72c2a03a5@arm.com> Date: Thu, 9 Aug 2018 16:54:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 This patch adds a few comments to include/elf/arm.h to clarify which versions of the ARM ELF specification defined which headers. Given that the EABI is pretty ubiquitous these days, I've marked anything not based on that as deprecated. I have no plans to remove any deprecated definitions at this time, but any new development shouldn't be building upon support for deprecated definitions remaining in the long term. * elf/arm.h: Updated comments for e_flags definitions. Committed. diff --git a/include/elf/arm.h b/include/elf/arm.h index fb9c5f6..db1b991 100644 --- a/include/elf/arm.h +++ b/include/elf/arm.h @@ -23,6 +23,8 @@ #include "elf/reloc-macros.h" /* Processor specific flags for the ELF header e_flags field. */ + +/* Old ABI (ie GNU pre EABI). These are deprecated. */ #define EF_ARM_RELEXEC 0x01 #define EF_ARM_INTERWORK 0x04 #define EF_ARM_APCS_26 0x08 @@ -38,13 +40,12 @@ /* Frame unwind information */ #define PT_ARM_EXIDX (PT_LOPROC + 1) -/* Other constants defined in the ARM ELF spec. version B-01. */ +/* Old ARM ELF spec. version B-01. Mostly deprecated. */ #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 -/* New constants defined in the ARM ELF spec. version XXX. +/* New constants defined in the ARM ELF spec. version XXX (AAELF). Only valid in conjunction with EF_ARM_EABI_VER5. */ #define EF_ARM_ABI_FLOAT_SOFT 0x200 /* NB conflicts with EF_ARM_SOFT_FLOAT. */ #define EF_ARM_ABI_FLOAT_HARD 0x400 /* NB conflicts with EF_ARM_VFP_FLOAT. */ @@ -53,6 +54,7 @@ #define EF_ARM_BE8 0x00800000 #define EF_ARM_LE8 0x00400000 +#define EF_ARM_EABIMASK 0xFF000000 #define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK) #define EF_ARM_EABI_UNKNOWN 0x00000000 #define EF_ARM_EABI_VER1 0x01000000