From patchwork Mon Mar 10 17:51:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 107605 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB0ED3858CDB for ; Mon, 10 Mar 2025 18:14:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB0ED3858CDB Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=ppImqYw9; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=ppImqYw9 X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on20620.outbound.protection.outlook.com [IPv6:2a01:111:f403:2606::620]) by sourceware.org (Postfix) with ESMTPS id 092833858D38 for ; Mon, 10 Mar 2025 17:53:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 092833858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 092833858D38 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2606::620 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1741629229; cv=pass; b=elLaHcIl2SW9QmoyEWa/TrnpX8rXS2mcjHwp6tnu2YHHSq1nbWTXOkzgeHPawlWSM33guOtvVrVUPyAmeqPUoIvOFbwM1v++yk03X2GdguRzpp4G9/14bp2K/K5ht3b2DnglJuZlUWu2C/bNAUBPwTBQNz8iaGS1m2Nyb5NwRh4= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1741629229; c=relaxed/simple; bh=N5iR6kmW45Pz7Enwn4rjiecttW2Ibov9aPQWvn4cTfo=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=n4QOx1zFbGcoJfrwo/ZMKteC89568EATFY9T59IGOBuxOrfr8R1IHao/EyF+oOcGOgnbYYnacX+28o6X7oLuTW285rJgndIhxzJocWBtN62mAA21dy8V4DTDHHg8vkuilZTMyRZBD01P0AZ2IzAIuPv+Xbq5qsBtctsvYNJVXOo= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 092833858D38 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=QUBpxt8Gq4OdcMtWtjCWGU6b5w4+FMm2cLPM9WIQ88yzTre+h9YKOu4SzYLALS9xcx6f3wbaxoDt2D1TuBCsfC5MaW+E4Cj/GU6DHH0ruO+BgUXaEdroyv2BAPJ/IhnFJl2S1ydecXOpwYLJ1NdKVOIEQOs4X937XYmOdzggdVWb7VkSdkboIL9NfcpawTMHRp0EBFEHw7to5TgXdlYqoFuA/NIra9oRO6BZ3KpyWkyT+AzzNcDtj6ZxtwfrwIEYB9htXavFdQXVKxsLvOkGiOd0JOted/lia5tnGYTQVHiAEgHTW7KtYvwAJOf+Q9oeQBk+4iRK6YVCHxaSuAMetA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HnNpfcLBHF+0eJHWdzQVgaqzScaZjzhtgOYjb4dL9bw=; b=MQFzUqbAW58kjsfG1VlS5jCWFu7024D1wvwP4UwB2rXw/X12JAD40PgzQhxLg2sGrywFll7TBwzhOIU88eWhmymVjHmxQuObFQLssVH93xDOkyzTjlXhpm3rA41aE1tYmDcpU68zbbTjSK1w0Qr4poBxkuiWuY9TGzwnfhsJP0nSugX2p+/e3uYpmuwjMHWGtWmFXaNw4aHQes3se6xWGN76aijYo1UsJ76SEvW8WnspchhKgnWV2+jgGmjFBizlnrAdgdy75/qG3QvUkM8BMr6H+iRLTT4HT1aDRGW7KTQiRqVm7sSjxVkQfyDeMyqlxjMYwxuZBJ3AvttnjO69vg== 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=arm.com; arc=pass (0 oda=0 ltdi=1) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HnNpfcLBHF+0eJHWdzQVgaqzScaZjzhtgOYjb4dL9bw=; b=ppImqYw9JNPd7U3YTVHFmL8NczrHmgW4gyoTDPE9Zzi9Oo/WUzCpLmdpkiaP8iaHFYn6D9pCIa9J9OsO1S1LblexlMIhzKMWP/ATFiGMpepDNToPwq+gnGZkF7Is2u/iiuu/lHhtFw7SIr7qCuTJu7Y73CHYuhhZbH8bo8FN6oE= Received: from DU6P191CA0061.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:53e::14) by PAWPR08MB9066.eurprd08.prod.outlook.com (2603:10a6:102:342::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8511.27; Mon, 10 Mar 2025 17:53:45 +0000 Received: from DU6PEPF0000B622.eurprd02.prod.outlook.com (2603:10a6:10:53e:cafe::37) by DU6P191CA0061.outlook.office365.com (2603:10a6:10:53e::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8511.26 via Frontend Transport; Mon, 10 Mar 2025 17:53:45 +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=arm.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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DU6PEPF0000B622.mail.protection.outlook.com (10.167.8.139) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8534.20 via Frontend Transport; Mon, 10 Mar 2025 17:53:45 +0000 Received: ("Tessian outbound c3a902884497:v585"); Mon, 10 Mar 2025 17:53:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 64ce313d2d17f524 X-TessianGatewayMetadata: RwBVHK2igva6WuvvqkunBiPJnIT8XKFIIBskLE/svDLI6zn26ammH/5oSt1VrNXTVaXDZnqlInjHZlCvqVmucL+ekCvS0JxoCd/9uRGHw9/NvqC5KBjK1w9d+wkLKjqNCiWRonROpo3T2tJF5l3ZrmqcRPs6eS7ymqW/KasPZGE= X-CR-MTA-TID: 64aa7808 Received: from Le9c45e4995a6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id AD6FFC39-81BB-41C4-AB93-5B29CCB58E75.1; Mon, 10 Mar 2025 17:53:34 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Le9c45e4995a6.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 10 Mar 2025 17:53:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o0ZNnRzrMv0Hj493xXiXkfpXbu/eVXZp8JPxORtOIBqmwvOHLZ/Q+OaQ3uHlLZjwQkN7eAQjdScmdEQVywpbrSzt8e/kh6egW9Qer9MU0XKXkOeCg3LU9WrdTte5YRTYjk3nm54gEJ92QJTEpJi6nf7TkBCVB/ERQdwoB6QomTsSNlRX+f82Dt56Y4VQhc/K6/Vv7/kYoZb2wJUDqKTS6j+KLdUZHf3HsA0XP2l4+Qun8+PWMPvfGVRlQCI8wAdiUefWSSnHjJ0V22Q5msX5XOjOw9ZzJOW3GmamikB2zrQLHrxgv9c8kQaVkPL5BlsNe5JhLhKRMzeWgrcmP3IZ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HnNpfcLBHF+0eJHWdzQVgaqzScaZjzhtgOYjb4dL9bw=; b=vuRtfxEYBPNYFlQmu52RKjsdflIYdzLV5J3U1jsFIAWE0sbs4yANb1kOonLaYW4e6btWQi5JEJFm42LYJh51U37XDpwuPQFOxTBD8PGyhEH6xirat+SnPQLOv08RSVxHfbGXMSgDMUrtOdvbGAoxYeHeKqnZHnKfOkyePMqvv1DKNrhcivvtkhvYLg6VT+PM5eazWjTUWGQgZPwl5Do9BsRSCsS3/cCPk0lU4XWme/MlpxD7e5AuVjUo0GRrglNfvq5DLFaTE4V1npLW1JpM5K++U5Z8ve92KlQdt4NIT0S3pNXtGpMe++OVlUaS2rEOKC39qHLs7J2YnEevk2yAHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HnNpfcLBHF+0eJHWdzQVgaqzScaZjzhtgOYjb4dL9bw=; b=ppImqYw9JNPd7U3YTVHFmL8NczrHmgW4gyoTDPE9Zzi9Oo/WUzCpLmdpkiaP8iaHFYn6D9pCIa9J9OsO1S1LblexlMIhzKMWP/ATFiGMpepDNToPwq+gnGZkF7Is2u/iiuu/lHhtFw7SIr7qCuTJu7Y73CHYuhhZbH8bo8FN6oE= Received: from CWLP265CA0539.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18d::16) by AS2PR08MB8748.eurprd08.prod.outlook.com (2603:10a6:20b:544::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8511.27; Mon, 10 Mar 2025 17:53:32 +0000 Received: from AM4PEPF00027A5E.eurprd04.prod.outlook.com (2603:10a6:400:18d:cafe::38) by CWLP265CA0539.outlook.office365.com (2603:10a6:400:18d::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8511.26 via Frontend Transport; Mon, 10 Mar 2025 17:53:32 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; Received: from nebula.arm.com (172.205.89.229) by AM4PEPF00027A5E.mail.protection.outlook.com (10.167.16.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8534.20 via Frontend Transport; Mon, 10 Mar 2025 17:53:32 +0000 Received: from AZ-NEU-EX06.Arm.com (10.240.25.134) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 10 Mar 2025 17:53:29 +0000 Received: from PW070M4K.arm.com (10.57.84.208) by mail.arm.com (10.240.25.134) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 10 Mar 2025 17:53:29 +0000 From: Matthieu Longo To: CC: Alan Modra , Richard Earnshaw , Matthieu Longo Subject: [PATCH v0 10/15] objcopy tests: copy accurately build attributes data from an object to another Date: Mon, 10 Mar 2025 17:51:23 +0000 Message-ID: <20250310175131.1217374-11-matthieu.longo@arm.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250310175131.1217374-1-matthieu.longo@arm.com> References: <20250310175131.1217374-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00027A5E:EE_|AS2PR08MB8748:EE_|DU6PEPF0000B622:EE_|PAWPR08MB9066:EE_ X-MS-Office365-Filtering-Correlation-Id: d734f844-3a76-4703-468a-08dd5ffc80e1 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700013|1800799024|82310400026|376014; X-Microsoft-Antispam-Message-Info-Original: 08jDWmU9H0Fh0EG34arlGH/f5fclsxhu/09VAmw1EqoZl18zr8ZvIJQKTNnmZIVTLLiYT1jwWnogjVHDUyDNjHjdnLUbvGRVQMF3de9tt9PvQVF8ljd30KTi5CdJVG5VtjpCVySKza5dmJU2271b+PxP6+CYJjCwf4ThcfM1aKjuTPxwDPbGPHF5hsBmNCiZf9Mu82Vj+VEKF8xwtOAnY3Gna4Vn9zaw5KUhw/tpQtOV+euoaLeDQxXinCSwOiW9NyXAUFEnR+6DDmQwbejnvvWPvVlqlN/X5LerMrBZ1x904P8JuO5fZvRbu5QqNrH++XPVEVDlPgynnChJV1/VNPEwfuIMhdFpwyJgZ+FYHh4+++qo5bczp6s+dV7Bvf5bvbujN0k2GjP0x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fISLDHR1vCrpZhyA1f1S1J8/WgnNPurRX9y7RNAc= X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(1800799024)(82310400026)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8748 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:400:18d::16]; domain=CWLP265CA0539.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF0000B622.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 50766119-e756-4052-2d60-08dd5ffc78e0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|14060799003|36860700013|1800799024|35042699022; X-Microsoft-Antispam-Message-Info: cVBE9X4iso+C5I2daB6E/ayQqUucFDYzMvofphwBjc4VvkhRKVRV3M6QLYTU8w74/IPoa19yuz1quRSO4pnc6FIyvdA4eR9qQEqHHBg+lgccOzcwYBvIKuXchfang8lLJhudvN1hWLLBDM+Jz6F3Qt6M6vlRwnMPaRxwi54gZtNv5i1XAqlov/uGehwaQoVDgOdXKemQv1UYwwCCcwTe6ifz5w4RAjLUbRsPmVdS0hV8WiBiJtR33xcU1u1coNDWchmJ6+pRfbQ0RNOfqRj5yFyBB8nGtv/OFPLVhSp6iGgorTyV3hLo/XrLFCLXA8SsInOLyFTcGuOJiKkClx5xW+HhBVQJHaC50dF5zvxTLdtoY4KrwW1mIk+m/6x9WgehclU39Gt4iBx0qmjs+JI5/D4f6f+2YA5kSZNOGVSIhW+3wD2dHVD//n0bO7ePvmKDUGgqHNZ6Y3T/PVQFudZ3CXH2KCJ63JjMdvfzM2+rRaiC43Fz+pzv7ODK4RwTmRHHGucSehy1RUuvad8XheUGdmhNnSzl6gMTA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aa7808-outbound-1.mta.getcheckrecipient.com; CAT:NONE; SFS:(13230040)(82310400026)(376014)(14060799003)(36860700013)(1800799024)(35042699022); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2025 17:53:45.5123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d734f844-3a76-4703-468a-08dd5ffc80e1 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: DU6PEPF0000B622.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9066 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org --- .../binutils-all/aarch64/build-attributes.d | 52 +++++++++++++++++++ .../binutils-all/aarch64/build-attributes.s | 31 +++++++++++ 2 files changed, 83 insertions(+) create mode 100644 binutils/testsuite/binutils-all/aarch64/build-attributes.d create mode 100644 binutils/testsuite/binutils-all/aarch64/build-attributes.s diff --git a/binutils/testsuite/binutils-all/aarch64/build-attributes.d b/binutils/testsuite/binutils-all/aarch64/build-attributes.d new file mode 100644 index 00000000000..a401749991d --- /dev/null +++ b/binutils/testsuite/binutils-all/aarch64/build-attributes.d @@ -0,0 +1,52 @@ +#name: Copy AEABI build attributes from an object to another. +#PROG: objcopy +#source: build-attributes.s +#readelf: -A + +Subsections: + - Name: aeabi_feature_and_bits + Scope: public + Length: 35 + Optional: True + Encoding: ULEB128 + Values: + Tag_Feature_BTI: 1 \(0x1\) + Tag_Feature_PAC: 0 \(0x0\) + Tag_Feature_GCS: 1 \(0x1\) + + - Name: aeabi_pauthabi + Scope: public + Length: 23 + Optional: False + Encoding: ULEB128 + Values: + Tag_PAuth_Schema: 1 \(0x1\) + + - Name: foo_1 + Scope: private + Length: 20 + Optional: True + Encoding: ULEB128 + Values: + Tag_unknown_1: 1 \(0x1\) + Tag_unknown_2: 0 \(0x0\) + Tag_unknown_3: 0 \(0x0\) + Tag_unknown_4: 0 \(0x0\) + + - Name: foo_2 + Scope: private + Length: 16 + Optional: True + Encoding: ULEB128 + Values: + Tag_unknown_0: 1 \(0x1\) + Tag_unknown_1: 1 \(0x1\) + + - Name: foo_3 + Scope: private + Length: 26 + Optional: True + Encoding: asciz + Values: + Tag_unknown_0: "hello" + Tag_unknown_1: "world" diff --git a/binutils/testsuite/binutils-all/aarch64/build-attributes.s b/binutils/testsuite/binutils-all/aarch64/build-attributes.s new file mode 100644 index 00000000000..bd9665f9f6d --- /dev/null +++ b/binutils/testsuite/binutils-all/aarch64/build-attributes.s @@ -0,0 +1,31 @@ +.aeabi_subsection aeabi_pauthabi, required, uleb128 +.aeabi_attribute Tag_PAuth_Schema, 1 + +.aeabi_subsection aeabi_feature_and_bits, optional, uleb128 +.aeabi_attribute Tag_Feature_BTI, 1 +.aeabi_attribute Tag_Feature_PAC, 0 +.aeabi_attribute Tag_Feature_GCS, 1 + +.aeabi_subsection foo_1, optional, uleb128 +.aeabi_attribute 1, 1 + +.aeabi_subsection foo_2, optional, uleb128 +.aeabi_attribute 0, 1 +.aeabi_attribute 1, 1 + +.aeabi_subsection foo_1, optional, uleb128 +.aeabi_attribute 2, 0 + +.aeabi_subsection foo_2, optional, uleb128 +.aeabi_attribute 1, 1 + +.aeabi_subsection foo_1, optional, uleb128 +.aeabi_attribute 2, 0 + +.aeabi_subsection foo_1, optional, uleb128 +.aeabi_attribute 3, 0 +.aeabi_attribute 4, 0 + +.aeabi_subsection foo_3, optional, ntbs +.aeabi_attribute 0, "hello" +.aeabi_attribute 1, "world"