From patchwork Fri Feb 28 09:12:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 183958 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp496121ile; Fri, 28 Feb 2020 01:12:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzVmurETytJYUII935ttv0+gNEzkhNP1H0r9Gl0TuZ4IbH4MrXeaGPqJIc12KHNuWkQ1CQi X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr2550268otq.156.1582881150394; Fri, 28 Feb 2020 01:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582881150; cv=none; d=google.com; s=arc-20160816; b=LfxWYYkJtbq8Gxv/bSravXYeFtC9Ynzh5dP+J7SpthoMzK63mnEA05WAkBHb23GUYT qeGtxgjd4KKlMiEC0vD7yMHVYBTWG+PjTMMOB/VJVdaZK2adb6obt233B/vT/Mzqp7+Z EMlDq82wHV1S0XCrzvVFCS1/H8Ap/lvr2HHsLTKmAAawh+BJLH4FG2Ecl9De7gqQtVgd tboZmEcCAAylXkRhgme/lAsp60Cp+lvP9N0VGypM1nCGAfjKpwk5jwbw7m0/WbAOPaQd 0keK2q8arw5RgQAEoEW0BFT23EKaN5MdBoHa7CaMrw89t2Y/kDkTz2LPGAbWeuwLkKW8 CsnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:dkim-signature:delivered-to:sender :list-help:list-post:list-archive:list-subscribe:list-unsubscribe :list-id:precedence:mailing-list:dkim-signature:domainkey-signature; bh=PFWVpnUA5UL41WyRpd8OnttSyoHIItRzRABfZ3Ip0Fo=; b=gh1LSGJzOoTjq1oBE2wHRJw7/DjH7OuzNIoWfpUHH08N+NWVcAiRk9WWVqXg8k73cj 0yarsth7/xEmt7IdEkX/kxgXdcU8D51U8yJaLue9Bqjh9FGYq4zC113KdmwcvJnYTZju nQzOhJctLAuxkZVJlAjYTdq2tJn9dGCQ5+S/aozJwgN05uHe44gftI4p8810dLEjBLLj KShIPUPB5conNRN/T2AQFlGRyUT3Y4WbuAv39sgaCX9RbEcGR9hl4Opc+fd7+qCmpYH+ Tyw0Y3pmjDFcb3uywOUmDYA6lBOJgi18K/ErG/ZcWda1zMq4sQc1w/+Emw+ZnZP5+XZZ MiRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Avn1xg8+; dkim=pass header.i=@linaro.org header.s=google header.b=oc2SKHkV; spf=pass (google.com: domain of binutils-return-109188-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="binutils-return-109188-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id x84si1631803oia.27.2020.02.28.01.12.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Feb 2020 01:12:30 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-return-109188-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=Avn1xg8+; dkim=pass header.i=@linaro.org header.s=google header.b=oc2SKHkV; spf=pass (google.com: domain of binutils-return-109188-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="binutils-return-109188-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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:from:to:subject:date:message-id; q=dns; s= default; b=c0kziwXoRq3ApSxeMXmeXyYZk9yYiocaBKa5xaA4HW7PmHYnwJADQ PRh3KG95D4jxYMAzJ34T+yAp2jfYF2Yh8BZ8tCH6R5BQ8Np6R7gKQxedN9NTxeVU nzVN+sGN9WvMFIOJOAnELrvBSP65SL6eIDi0Uj7C/QBdCjz6qPRvIg= 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:from:to:subject:date:message-id; s=default; bh=nLKJzHWojrk1HttAq2ZWfrUIWzQ=; b=Avn1xg8+q+H/PCQISicyrCKcVtiW Ra6yH2WJ7ziweulD9SjMdYhPrVFTDVgtAQxw4w5T4CRAsBsS3W1zHhsaDqY+LwN1 jG1kYcXkH+DOUQKVDUSAwDeyp9oo9RiMwDX3HOJDG3fvI7o3I7PCOw4Q62FCujyY iNyTvBWLWsGJhL4= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@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 06:12:07 -0300 Message-Id: <20200228091207.16367-1-luis.machado@linaro.org> X-IsSubscribed: yes 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(+) -- 2.17.1 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. */