From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10048.outbound.protection.outlook.com [40.107.1.48]) by sourceware.org (Postfix) with ESMTPS id DD2983858C50 for ; Tue, 3 May 2022 11:34:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DD2983858C50 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=JbwEfzJL+wdgGTtpNQuXw2LnIibsoe8zdjwN0tkvS44tKSfaWKR0NrzNeqxDo6tf1o3PJF3cY2RfKJw0ebawiCFGDt3AaLLaR+tqd7OvNVIj03FxUy3c+WAszYKDG+Zxmtu+ow5RymaAOtCDap61WMnn7FdQ1Qzn0o17gf2V5pcp+7CbnNicpYOxAXuNK0VIOL03eZ1QEqmO0dSXR0otTHIjtanm3ZXctG6rnqfjRVsf2tq3XcwN3et6nPYOvJXgmPtizuPJmhD68FCOaQzj+X6GQj0xLo+vQr17kftrnRrVtvUBBW/G35ihpGNF8Yj1Qn0iaHsPrnpRQGBKCclhHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=V0q/DnnpfcNFH3nJOxrUKNhb/F3qrm08zri3DEqi3Dw=; b=GkxquBCfjItE3dJPsQjZb88hxNRXvS6H+tvOXnqczqv+qabcmbx0ywdLbyYlrjViiV2le5gG1HrpDb6QBSTsH4O3lx4yfI0BexD379Ia+kaaiNnwo+zrdiBsB0NzeU0t/te3wEtWaW2DtBYSvhMWQRWRdxSFQ4XQUAef/C3MEVMV70o14nOTAxW54+1IgZn31fMksB311EizEAmo/o4LxQWZEtwcU6UIluIPfLasw0TMFH0OQym7mRBG4ruhTkLQhY5+szsOoZ2ohwnOL/XwmheYZMa3OoNHHDKVFkrYzZ83rU5IMH1pv8ZdcGQtuEM6rK4yCH1vRLbd1lS0I5b+xg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) Received: from AM6PR05CA0033.eurprd05.prod.outlook.com (2603:10a6:20b:2e::46) by AM4PR0802MB2209.eurprd08.prod.outlook.com (2603:10a6:200:66::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Tue, 3 May 2022 11:34:08 +0000 Received: from VE1EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2e:cafe::93) by AM6PR05CA0033.outlook.office365.com (2603:10a6:20b:2e::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.24 via Frontend Transport; Tue, 3 May 2022 11:34:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT062.mail.protection.outlook.com (10.152.18.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.14 via Frontend Transport; Tue, 3 May 2022 11:34:07 +0000 Received: ("Tessian outbound ab7864ef57f2:v118"); Tue, 03 May 2022 11:34:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 53228742e9270a5d X-CR-MTA-TID: 64aa7808 Received: from 92e2c7e5942f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 17125851-7438-4B21-94EE-222A1C7E74C3.1; Tue, 03 May 2022 11:33:58 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 92e2c7e5942f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 03 May 2022 11:33:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DyjN/69QU+xD/YA3jaUyiSSrPLEjnzIbUY8qjO/nuAYUuynet1iMBAwp230yw+F5bdZfqCOUVtvSkuZ7GlN1npd22E6LloPPtz5DER7atmwACp+o6JEr39+PIu38hVW9rPtdp4R4zBfEdO4mv3eizZ4tl+kvlXZy1XrwYe2L1naI4cwkNiGgxTu9PEmaxlmtRoQ8WMpNk096Pij4gecbOJu4lJIvuuKiLtb5KJLQ3BALjfCjC+og1qgy3sLmIYwoHObGIXNIzfrxlwYdIEU4UH9yYuLHfeAJqPUs7M1AEUMX5bes0q+DbV/m0tPHfI8m8beaycEAGbVAA2y2W4+HrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=V0q/DnnpfcNFH3nJOxrUKNhb/F3qrm08zri3DEqi3Dw=; b=hex8WKNPHO6HglwHi9L4KF9o1ryD/JCMCUluSzl0Ujj5Up/g2YY7yzIw/NhOi4fHvMBDwBuqx7d4iIdV59II4k250C0FkdVWJL0V2Stc3uuSp/yGpxWm+kKXZjOo9Wnf5VRSHMm503ubx7kx9+TXoiH2bY/piQcbc5Xczu0Vx3CTBkSS3XE2iHlZVjCs93X2tsckT0iGM//J7cdf4g1uzQwT7hi1GCrYbi4A52GHJsDIPNO2fQ8W1VbPymJMjf/aBEAFBelqxRXaD2nKjlPlH9dHFmjafC3T/Rq1YYRg8gmZbnvyeVwc/eSJI89YuNxSRCTHWOY1SeIUlKdLGvKXSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from DU2PR04CA0322.eurprd04.prod.outlook.com (2603:10a6:10:2b5::27) by PA4PR08MB6000.eurprd08.prod.outlook.com (2603:10a6:102:ed::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.24; Tue, 3 May 2022 11:33:56 +0000 Received: from DB5EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b5:cafe::3b) by DU2PR04CA0322.outlook.office365.com (2603:10a6:10:2b5::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.24 via Frontend Transport; Tue, 3 May 2022 11:33:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT045.mail.protection.outlook.com (10.152.21.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5206.12 via Frontend Transport; Tue, 3 May 2022 11:33:56 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 3 May 2022 11:33:56 +0000 Received: from e129171.arm.com (10.57.0.164) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Tue, 3 May 2022 11:33:56 +0000 From: Luis Machado To: Subject: [PATCH] [AArch64] Support AArch64 MTE memory tag dumps in core files Date: Tue, 3 May 2022 12:33:50 +0100 Message-ID: <20220503113350.571511-1-luis.machado@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220331140457.9237-1-luis.machado@arm.com> References: <20220331140457.9237-1-luis.machado@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 33b422c4-e329-47e6-f5b2-08da2cf8d5bd X-MS-TrafficTypeDiagnostic: PA4PR08MB6000:EE_|VE1EUR03FT062:EE_|AM4PR0802MB2209:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UHBrwfnRnW/I/jKExODS9NwbgrAFzfKEoTODrMUhT8+8GmkdZElGLjXkA0vwevas3njreLMwEO+nV1VjAOwuwIs16CYp6EZE5W9Y6EC3IZmxG6YXWLw4o0X2Yb4Z7ShzOJVMnnB8KuIcpb4KV4Vmae60zs736xPlI9U9FSKMf+RCjwfxa3qVJ5qCP9oSsO5soyvuzZ3Mt592mprrZJBue+uEbMwV3nfgBOhM5LDg/0w/lyomC7lvUspp2ZxlVGAIvn2c4Pj7t03kyDjwV+EZhiSnLS4VxPm3IFRm7bH26nvaB3NaaoJr7YwTI0/5Xwzg1Ta4nqGbexL7EErO1T78OLQTkD3H5oKVQjc6BAtrdHlcOHqvWafHeCpcBWtpQt/B5VdEyhJI6M7vgAHmr01WgsEyuOWrvhiijmpJK0B4QPyhC2JTRfXPF80ZEz1mCjEEQw4UWBF1nY7Gy9gKHwRdiCPMom7SYmOk7TKd8o9uN88XJwHPitvyGiL/9rbB6WRJAPJRew9+PaqcBuh6fmZt19W0zlBuI2k+fsTb6JjhY/mnwFbAhOinYY0AE6WdxvqL9fk+S1OquppoTYe5Tv8dFeXdeptdwz/7zWCHe4kTxw6g2T3Vo5i2Bvuq6PL//tQqadUYgi+khvbNlEz4N5CDn5KIqgw6Uesq8nyY4q72mtOPiOoOlnpgbDcG37BVOMcFge1rxZXU1yEABS2kP3TodA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(6666004)(44832011)(5660300002)(6916009)(8936002)(40460700003)(356005)(2906002)(7696005)(81166007)(508600001)(82310400005)(2616005)(316002)(86362001)(36756003)(83380400001)(70586007)(70206006)(186003)(8676002)(4326008)(47076005)(336012)(426003)(1076003)(36860700001)(26005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6000 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e477f8a1-077c-4ee2-1f96-08da2cf8cf48 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RDyouiea0R6VNENd0kwlAf1wGtZ5DFdIqkzbaT4Y0RITfMv3BVmPnYA/+vzPKcCckRBFuNis7Od9JA90iaSb05P1XpH8qPRZpq6WwZMTkDCT1cH8fp+zgHMtd9acox3We7OIXVoF0D1LZPwnYg2Q9f4kuvZvK0fLjhmd9Y6ShwfQ2rNBjL3v14uhJF1sE8A22QALydgX8ZSGW+AE02mwX8A5n5dPwWc+gCF6CyRWJdpYzu1Q+jLaotJSFK2jmMdCQ+tkMd5zad41i44uC/nFQndek+BtAAkx6V2XA2gNp1uIai6iavF8GhGFGr71BxZtV5uczHy/ry19i+2O0pOE6C6Q4vJHWuj4O9wHwbv+KFGJG7aphchtg5uXhJ7gFv3TiV8Ux2Yf6maCrhCK0QvZVuL1CRJm+GbtP9AM+XP/UQgziDavixPNjMkADXU5T+q/7EoAUp0rxPWttiSvo6VZpMzZl9oFol0Jjt3SgJaRAHRuFAHmp7H57Oixu8qKsiiAVWvvlzmDqc/8FP3jhwkk/ocWWa5JsWcJkYuuHM5wYbe2+M/11fn3MXpRhAZde3hOyHD4LW9ZSfQBss15Dk1tlgefg56sb3NAkptcbyqE/fImCfgS2DNHW7EzHHd+lRlXLEn4n6SCM8FWN4JJ7cZDoW1FzTI7nW3ZjlzaSM7mJGVHGrFczHhptTNNTiWdpf1L X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(7696005)(6666004)(26005)(70586007)(508600001)(70206006)(8676002)(316002)(6916009)(36756003)(2906002)(4326008)(426003)(47076005)(83380400001)(186003)(107886003)(336012)(1076003)(8936002)(2616005)(86362001)(5660300002)(36860700001)(44832011)(82310400005)(81166007)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2022 11:34:07.4760 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33b422c4-e329-47e6-f5b2-08da2cf8d5bd X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2209 X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2022 11:34:14 -0000 v3: - Update the segment name from PT_ARM_MEMTAG_MTE to PT_AARCH64_MEMTAG_MTE and change its value to PT_LOPROC + 0x2, as PT_LOPROC + 0x1 was taken. v2: - Drop arch-specific fields from the generic section data structure. - Use the rawsize field of the section structure to store the original memory range of the memory-tagged area. - Implement the bfd_elf_modify_headers for aarch64, to adjust the values for the memory tag segment according to the Linux Kernel's format. -- The Linux kernel can dump memory tag segments to a core file, one segment per mapped range. The format and documentation can be found in the Linux kernel tree [1]. The following patch adjusts bfd and binutils so they can handle this new segment type and display it accordingly. It also adds code required so GDB can properly read/dump core file data containing memory tags. Upon reading, each segment that contains memory tags gets mapped to a section named "memtag". These sections will be used by GDB to lookup the tag data. There can be multiple such sections with the same name, and they are not numbered to simplify GDB's handling and lookup. There is another patch for GDB that enables both reading and dumping of memory tag segments. Tested on aarch64-linux Ubuntu 20.04. [1] Documentation/arm64/memory-tagging-extension.rst (Core Dump Support) --- bfd/elfnn-aarch64.c | 89 +++++++++++++++++++++++++++++++++++++++++++ binutils/readelf.c | 1 + include/elf/aarch64.h | 3 ++ 3 files changed, 93 insertions(+) diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 4926bab9cf2..3eee97b7ada 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -8158,6 +8158,89 @@ elfNN_aarch64_section_from_shdr (bfd *abfd, return true; } +/* Process any AArch64-specific program segment types. */ + +static bool +elfNN_aarch64_section_from_phdr (bfd *abfd ATTRIBUTE_UNUSED, + Elf_Internal_Phdr *hdr, + int hdr_index ATTRIBUTE_UNUSED, + const char *name ATTRIBUTE_UNUSED) +{ + /* Right now we only handle the PT_AARCH64_MEMTAG_MTE segment type. */ + if (hdr == NULL || hdr->p_type != PT_AARCH64_MEMTAG_MTE) + return false; + + if (hdr->p_filesz > 0) + { + /* Sections created from memory tag p_type's are always named + "memtag". This makes it easier for tools (for example, GDB) + to find them. */ + asection *newsect = bfd_make_section_anyway (abfd, "memtag"); + + if (newsect == NULL) + return false; + + unsigned int opb = bfd_octets_per_byte (abfd, NULL); + + /* p_vaddr holds the original start address of the tagged memory + range. */ + newsect->vma = hdr->p_vaddr / opb; + + /* p_filesz holds the storage size of the packed tags. */ + newsect->size = hdr->p_filesz; + newsect->filepos = hdr->p_offset; + + /* p_memsz holds the size of the memory range that contains tags. The + section's rawsize field is reused for this purpose. */ + newsect->rawsize = hdr->p_memsz; + + /* Make sure the section's flags has SEC_HAS_CONTENTS set, otherwise + BFD will return all zeroes when attempting to get contents from this + section. */ + newsect->flags |= SEC_HAS_CONTENTS; + } + + return true; +} + +/* Implements the bfd_elf_modify_headers hook for aarch64. */ + +static bool +elfNN_aarch64_modify_headers (bfd *abfd, + struct bfd_link_info *info) +{ + struct elf_segment_map *m; + unsigned int segment_count = 0; + Elf_Internal_Phdr *p; + + for (m = elf_seg_map (abfd); m != NULL; m = m->next, segment_count++) + { + /* We are only interested in the memory tag segment that will be dumped + to a core file. If we have no memory tags or this isn't a core file we + are dealing with, just skip this segment. */ + if (m->p_type != PT_AARCH64_MEMTAG_MTE + || bfd_get_format (abfd) != bfd_core) + continue; + + /* For memory tag segments in core files, the size of the file contents + is smaller than the size of the memory range. Adjust the memory size + accordingly. The real memory size is held in the section's rawsize + field. */ + if (m->count > 0) + { + p = elf_tdata (abfd)->phdr; + p += m->idx; + p->p_memsz = m->sections[0]->rawsize; + p->p_flags = 0; + p->p_paddr = 0; + p->p_align = 0; + } + } + + /* Give the generic code a chance to handle the headers. */ + return _bfd_elf_modify_headers (abfd, info); +} + /* A structure used to record a list of sections, independently of the next and prev fields in the asection structure. */ typedef struct section_list @@ -10059,6 +10142,12 @@ const struct elf_size_info elfNN_aarch64_size_info = #define elf_backend_section_from_shdr \ elfNN_aarch64_section_from_shdr +#define elf_backend_section_from_phdr \ + elfNN_aarch64_section_from_phdr + +#define elf_backend_modify_headers \ + elfNN_aarch64_modify_headers + #define elf_backend_size_dynamic_sections \ elfNN_aarch64_size_dynamic_sections diff --git a/binutils/readelf.c b/binutils/readelf.c index d45e0920788..ea20479daef 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -4499,6 +4499,7 @@ get_aarch64_segment_type (unsigned long type) switch (type) { case PT_AARCH64_ARCHEXT: return "AARCH64_ARCHEXT"; + case PT_AARCH64_MEMTAG_MTE: return "AARCH64_MEMTAG_MTE"; default: return NULL; } } diff --git a/include/elf/aarch64.h b/include/elf/aarch64.h index 703a62baeca..e368ff2dffe 100644 --- a/include/elf/aarch64.h +++ b/include/elf/aarch64.h @@ -27,6 +27,9 @@ /* Processor specific program header types. */ #define PT_AARCH64_ARCHEXT (PT_LOPROC + 0) +/* MTE memory tag segment type. */ +#define PT_AARCH64_MEMTAG_MTE (PT_LOPROC + 0x2) + /* Additional section types. */ #define SHT_AARCH64_ATTRIBUTES 0x70000003 /* Section holds attributes. */ -- 2.25.1