From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47895 invoked by alias); 28 Feb 2020 09:12:18 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 47887 invoked by uid 89); 28 Feb 2020 09:12:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f193.google.com Received: from mail-qk1-f193.google.com (HELO mail-qk1-f193.google.com) (209.85.222.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Feb 2020 09:12:17 +0000 Received: by mail-qk1-f193.google.com with SMTP id e16so2290046qkl.6 for ; Fri, 28 Feb 2020 01:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=PFWVpnUA5UL41WyRpd8OnttSyoHIItRzRABfZ3Ip0Fo=; b=oc2SKHkVWD3YGrdGl5LPxVS186qV7y6+K64d5PAj8yGZcyiBKs+XCffdkxap6HDNDn RGixbaoJH4A643VPzfKp8DOVgI/jc3tUP5KyjzYqkY4iB+ua/ac+hQDNJGjSwviMfeFj QMJ+6TeEFD1ykcNbK07MHi6Cjauz+b8fMRBth9ovu8dhk4Pg9NAqHqJ6lH9laIMFsACM IeMZN6b0G6LFeHPHwWdtp3szI+PJJ49BH7NAiYgu7p3rfXV1alcIEXbLc2ej8FZvIcQV 3VriwqWwnCnEm7BVD2TpgqgRg8Y9BvvTpVKFBtVumekqrefv4B9uaGmDM7wk5SBmBEQU k8rQ== Return-Path: Received: from localhost.localdomain ([191.34.159.98]) by smtp.gmail.com with ESMTPSA id o10sm4646627qtp.38.2020.02.28.01.12.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 01:12:14 -0800 (PST) From: Luis Machado To: binutils@sourceware.org Subject: [PATCH] Update ELF auxv entry types Date: Fri, 28 Feb 2020 09:12:00 -0000 Message-Id: <20200228091207.16367-1-luis.machado@linaro.org> X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00567.txt.bz2 I noticed GDB didn't know a particular AT tag (51) when doing some debugging. Turns out we're missing a few entries compared to glibc's headers. This patch adds them to the ELF include file. A separate GDB patch to use these has been approved already. include/ChangeLog: YYYY-MM-DD Luis Machado * elf/common.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY) (AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE) (AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY) (AT_MINSIGSTKSZ): New defines, imported from glibc. --- include/elf/common.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/elf/common.h b/include/elf/common.h index 53b72445ca..18c898cf6b 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -1222,6 +1222,21 @@ #define AT_L2_CACHESHAPE 36 #define AT_L3_CACHESHAPE 37 +/* Shapes of the caches, with more room to describe them. + *GEOMETRY are comprised of cache line size in bytes in the bottom 16 bits + and the cache associativity in the next 16 bits. */ +#define AT_L1I_CACHESIZE 40 +#define AT_L1I_CACHEGEOMETRY 41 +#define AT_L1D_CACHESIZE 42 +#define AT_L1D_CACHEGEOMETRY 43 +#define AT_L2_CACHESIZE 44 +#define AT_L2_CACHEGEOMETRY 45 +#define AT_L3_CACHESIZE 46 +#define AT_L3_CACHEGEOMETRY 47 + +#define AT_MINSIGSTKSZ 51 /* Stack needed for signal delivery + (AArch64). */ + #define AT_FREEBSD_EXECPATH 15 /* Path to the executable. */ #define AT_FREEBSD_CANARY 16 /* Canary for SSP. */ #define AT_FREEBSD_CANARYLEN 17 /* Length of the canary. */ -- 2.17.1