From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2083.outbound.protection.outlook.com [40.107.21.83]) by sourceware.org (Postfix) with ESMTPS id 7AEE03856241 for ; Tue, 5 Jul 2022 13:58:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7AEE03856241 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-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=lXZYjWNfK/gj2GNAOocrVlooBaaaYUxsKaV8zBPdoDkykk6ZGyWPfyMVwCIXYVMbS9H2qo/d/ADvwHdtsGlIavqbPYMyD9Vg5kuyGR2R7V/BTcxlVzI2SI8HXM0kke1TbGz9vFSGODmgOE4fIfYY180Z7TfWkgl+FMJR6LqZe3gYnbh+hhYA5AcYM/AD8o1n0e5WiBC4u+a6kMx97Je0yNcM+43hJRQ1rVebdStg+dEQKhTCZSthgUYe0xGL1nbNwLVABjrx7AFvHTyX5KTvDCN4amAtKXDnCrmxheby6YjlTmFEjePsH3gdmoFppoFBUtErXaev5u3/hNC69S9UkQ== 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=SfEEVww0XGYYqNHPMb1VQauMSElvhym2GEGnD9XhKhg=; b=aXlsE/N4htL/LZ422Voe4wdTK2TeP1GsrB16SLzKykA7ZHB1jgrH5a9JRpykfz3znCTtTorCedAZ6zAkglI3RBJkBFuqf+bNozLmE5dw82C2f0HYEB0kHaeZHO2jPO5nVAHNiDPKe3Zd93Bhi8aeD5gEcDGDqX+fByL7+Z+i4EoqK15mdcW8tNnh+Wln1Z1ThlMvqsOTEm/OpVr7NOPnwKkzmEG8pO2dnietAQggLOrghK28GYYLkX8eoZbs8gmvKF1B97B5CDUuyV2uXnEsIwgRpvfp3xXtZUgQ0qz49vAi/6HfRoMG1LP/A7NykHFw4e7wMTcNwuWpICnGP5+QNw== 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]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SfEEVww0XGYYqNHPMb1VQauMSElvhym2GEGnD9XhKhg=; b=jJlVVkfHEfzFTycq3HUbtjhq11yylMa/2B1VRXcU2eUVl/i3ynMgnFcLUScwq23E9nOkprX6tBgjtp85D8qzGEqbUYb6Qg0lcg04sRdudeps8OT/oLUPkknBzMGivrwznnVrdlrbBNj58NAvpuMdiq4QeWTKUSOFKiGgGSm6anA= Received: from AS9PR06CA0397.eurprd06.prod.outlook.com (2603:10a6:20b:461::8) by DB6PR0801MB1861.eurprd08.prod.outlook.com (2603:10a6:4:73::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Tue, 5 Jul 2022 13:58:45 +0000 Received: from VE1EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:461:cafe::f7) by AS9PR06CA0397.outlook.office365.com (2603:10a6:20b:461::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15 via Frontend Transport; Tue, 5 Jul 2022 13:58: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=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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT037.mail.protection.outlook.com (10.152.19.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14 via Frontend Transport; Tue, 5 Jul 2022 13:58:44 +0000 Received: ("Tessian outbound 9336577968ca:v121"); Tue, 05 Jul 2022 13:58:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2eb015e697a467db X-CR-MTA-TID: 64aa7808 Received: from 454ea66ea626.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 91565B02-25BC-43DF-A7B4-F68E32E00280.1; Tue, 05 Jul 2022 13:58:37 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 454ea66ea626.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 05 Jul 2022 13:58:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LTCkvOWAf6LLH7adCVAvWUnXnv6Fm0LHtKwKvMH+kNu908HVuOt6iPuDnlIDvHdFn829AG2xYjpzFH+MLJRbjn4mFGWefAT9RVGl4Qs0VYxW6w+lDnb22MX1ZKJHJtTG1Zra9m4RT9CBp00BMqrG2AvJbZ1/kpX1pZ0w8qTPBVLc5VP/Zhr3jRNKr1xe+PnsjUq/fTYPjdB+oDx9jHfsXGiC0khoF1ktozU/DWc9WQ4UwcOx2tLePrAMHKcLtX3mFWirZsrfNjvdcNzhUi6liSwdazWwzTP+TsxjOqHoOk0qD/kzcx23mI2lDt09nQd2y/VI7D2YeU2Jm77dhtDGqg== 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=SfEEVww0XGYYqNHPMb1VQauMSElvhym2GEGnD9XhKhg=; b=WHcx+HUH8EcnNzjl8eU2DxPZIfKLB+fGEVDjUXadcLO8rhDMfnpCFkTQhx9pPbP/0XdxQEWMJqRM7FlX4aDVtEfG3ot+z4Pid4e2ju84iSSCd45yXCStfsbg06ijuqeoVxOZH+ozR9rfzMIJiq98So7OzR+9yOn3lT/Inq+wr+GifV07ZDVFmSIq2EaWpA+faQORuAlmtTQB52uTVfEegWV/Ivoqqvz778n506YMsjdkB+p3tXIXJiTubc9y8HAk2+X3vuNQKpYUIDE2Z6C7vT2F8V/Ii1PAz+eE3UHDJVzoub2OKNzCNpwKEvEpI0LIpLJLFEMj1UyXumntvSKaUg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SfEEVww0XGYYqNHPMb1VQauMSElvhym2GEGnD9XhKhg=; b=jJlVVkfHEfzFTycq3HUbtjhq11yylMa/2B1VRXcU2eUVl/i3ynMgnFcLUScwq23E9nOkprX6tBgjtp85D8qzGEqbUYb6Qg0lcg04sRdudeps8OT/oLUPkknBzMGivrwznnVrdlrbBNj58NAvpuMdiq4QeWTKUSOFKiGgGSm6anA= Received: from AM6P194CA0046.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:84::23) by AM4PR08MB2835.eurprd08.prod.outlook.com (2603:10a6:205:a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.20; Tue, 5 Jul 2022 13:58:32 +0000 Received: from VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:84:cafe::68) by AM6P194CA0046.outlook.office365.com (2603:10a6:209:84::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15 via Frontend Transport; Tue, 5 Jul 2022 13:58:32 +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; pr=C Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT032.mail.protection.outlook.com (10.152.18.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5395.14 via Frontend Transport; Tue, 5 Jul 2022 13:58:32 +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.2507.9; Tue, 5 Jul 2022 13:58:24 +0000 Received: from e125768.cambridge.arm.com (10.2.78.50) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Tue, 5 Jul 2022 13:58:24 +0000 From: Victor Do Nascimento To: Subject: [PATCH 4/8] newlib: libc: memchr M-profile PACBTI-enablement Date: Tue, 5 Jul 2022 14:58:14 +0100 Message-ID: <20220705135818.50088-5-victor.donascimento@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220705135818.50088-1-victor.donascimento@arm.com> References: <20220705135818.50088-1-victor.donascimento@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 96d4d610-7aa0-47df-5791-08da5e8e79b6 X-MS-TrafficTypeDiagnostic: AM4PR08MB2835:EE_|VE1EUR03FT037:EE_|DB6PR0801MB1861:EE_ 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: HsKKmw6PFxsRBqHMBj4JOGVKhpBggVkhl+i5IHQHzLkBMCLAwKS9hJK4+xcA+j5eO39d2BrggVHLweEAPTfxJ5K3MyVWPMMfVvX67RHzoUieEUck/4hpYbU3TNydQHrgR3dT/rAy5q21aFi/y6cajzDWdx5/mO6e3/X8Pk1C2Ia/vyG+WjK7lYVg6/h+cYZGqeqX7zlbzkQKIvdN0Z0wzw1jFlvUrOIqVkYhPsxNEciMhZRm89u17qcuWeaV4AMi6Y7oXLNTwF9MYojSF6M7/DqSWhc5A1ZpxTmA+TndzX2lhiia9xTSf/K295VQ4GnHna2XGW39/At7IGa1Yq5Eu32RxXq0TsYY1GtpYinCW0NPPmwVvPQQC/U5kzH3yFd3NiCwEtnrvn+eqdBTTp1thkxdK6hSYH9ag3ulSz+dlf4ZWIgyR2RM7q39nxs4UF1hPleRJxf+x/ifi5RqCOdTskeS0JIy4DOPh5ghFZPOV9HFUb2K3CTLHulwOqBQX750DFudMes1xxd3HonEbDCkN984VznfSTqDfs3pcVzHitYFlDFDl6w+xdoI7WYkVig038SMO8LVX5Qy3HMViYRzXsGGb1ZThj7KcgpLQO9ao4JYVLH/KYqD8P4iacaTYujeJALnYAAo3KDL2pLgQilAo0LavWfuK1h/KecGhsiWa66auAbrPs3VueJeqFuqgKr3RV/ZKELMgtNyhDmdr8yYyQmgQr1/dNJ8Xuyyfx961JcUgDBpXRoawF5tFwNz+nduuiU0Bbl/GbnTtReqqaYNJdJCJoCdpS6pSr4+QnnS9v2qY4yJZiTIsOf42NdprypooRgRCiVwzq4Y72KU7m92+Ky1gz43noyFZ59Yjr1JZiE= 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:(13230016)(4636009)(346002)(396003)(136003)(39860400002)(376002)(40470700004)(46966006)(36840700001)(8936002)(478600001)(5660300002)(81166007)(356005)(6916009)(316002)(86362001)(82740400003)(40460700003)(70206006)(70586007)(4326008)(426003)(47076005)(8676002)(336012)(83380400001)(2616005)(1076003)(186003)(26005)(2906002)(41300700001)(82310400005)(7696005)(36860700001)(40480700001)(6666004)(36756003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2835 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 120ce54e-d8cf-48d8-3128-08da5e8e723d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LYHjVMqE7uw9f2NvQeN4auu4YhmkL/c7YRJ8GTT9cp1qMWatikqj0wMuYCEcS8lj9iygexYLXdXgrU+UVvvUgFGelQi2d83lpjRhg5ld7/4HSzWSuhGH04sZgxsyBnOjHLfSGWQqO3ywsWXa+oZ/J8jujq2TO+fw5rjrGCReH9crg2mrbtY6Gz9WPTMp2UtNQKyd4v8KJv0WIMwnncMSWr2gAdju+1YMgHE36p0auYdpo+pJHk71l5xm1hCZy0xjMG6qnLrmAsLvwpZRuMm9y0/DimgNXA3EYEa5X8TJrns4EGgAWuLGtXAhiYsoxMES9N+kUftl1b5lNyK2Y+pLHOPjjM12tsHC/bCvv8FOOKzkJ8BiYQJdONr3SLb6H9Qc45FenbXIePR+x+3eLEZS+eHWdxFcpfPGbbqxKmzrDHFOzLHuLE7Vjx/bIl1vI/0p4AP+DpRdPV+WoNV02C9FEwlObkqhPoytbisNKdh8FLmN+Ihg27pSdPiP00FznZDqcz84iS51Q8S6PWgX5yFajvGC8+ocI99zY+snFKb27XKf6Z6L/7D6WHVuznSeuO3NVR8Y7YXnNbh6F4cvNjC+XjEA3o574o+tp0QkHX5y94qB+abqqmTZ7tjuiy/6VGxo9XQQBLlGc2q2wavo+X5cHzLOZr7ir1+LGMXnq01nQUPq5ZBfs8Ek6mJ2bv4JnP3y51Ok5Hk+Wc2C3vJCHb7jEtaWhcm5Zi1QB5Wk8kFPXdFPs5F2U/t225eV8BiCikiyvFjELEH3Ze5fjXkKaUKjy4rtnIZROJ1a7JeGCMJO0JfWLiYIkJN34T94fqmpJXFk 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:(13230016)(4636009)(346002)(136003)(39860400002)(396003)(376002)(40470700004)(46966006)(36840700001)(8676002)(4326008)(70586007)(70206006)(40480700001)(82740400003)(81166007)(316002)(186003)(2616005)(1076003)(426003)(336012)(47076005)(41300700001)(6666004)(7696005)(478600001)(26005)(6916009)(40460700003)(83380400001)(36860700001)(2906002)(5660300002)(82310400005)(8936002)(86362001)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2022 13:58:44.5578 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96d4d610-7aa0-47df-5791-08da5e8e79b6 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: VE1EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1861 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, 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: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2022 13:58:50 -0000 Add function prologue/epilogue to conditionally add BTI landing pads and/or PAC code generation & authentication instructions depending on compilation flags. --- newlib/libc/machine/arm/memchr.S | 49 ++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S index 1a4c6512c..644cfda3f 100644 --- a/newlib/libc/machine/arm/memchr.S +++ b/newlib/libc/machine/arm/memchr.S @@ -76,6 +76,7 @@ .syntax unified #include "acle-compat.h" +#include "pacbti.h" @ NOTE: This ifdef MUST match the one in memchr-stub.c #if defined (__ARM_NEON__) || defined (__ARM_NEON) @@ -266,7 +267,9 @@ memchr: #elif __ARM_ARCH_ISA_THUMB >= 2 && defined (__ARM_FEATURE_DSP) -#if __ARM_ARCH_PROFILE == 'M' +#if __ARM_ARCH_8M_MAIN__ + /* keep config inherited from -march= */ +#elif __ARM_ARCH_PROFILE == 'M' .arch armv7e-m #else .arch armv6t2 @@ -287,11 +290,14 @@ memchr: .p2align 4,,15 .global memchr .type memchr,%function + .fnstart + .cfi_startproc memchr: @ r0 = start of memory to scan @ r1 = character to look for @ r2 = length @ returns r0 = pointer to character or NULL if not found + pacbti_prologue and r1,r1,#0xff @ Don't trust the caller to pass a char cmp r2,#16 @ If short don't bother with anything clever @@ -313,6 +319,19 @@ memchr: 10: @ We are aligned, we know we have at least 8 bytes to work with push {r4,r5,r6,r7} + .save {r4-r7} + .cfi_adjust_cfa_offset 16 +#ifdef __ARM_FEATURE_PAC_DEFAULT + .cfi_offset 4, -20 + .cfi_offset 5, -16 + .cfi_offset 6, -12 + .cfi_offset 7, -8 +#else + .cfi_offset 4, -16 + .cfi_offset 5, -12 + .cfi_offset 6, -8 + .cfi_offset 7, -4 +#endif /* __ARM_FEATURE_PAC_DEFAULT */ orr r1, r1, r1, lsl #8 @ expand the match word across all bytes orr r1, r1, r1, lsl #16 bic r4, r2, #7 @ Number of double words to work with * 8 @@ -334,6 +353,11 @@ memchr: bne 15b @ (Flags from the subs above) pop {r4,r5,r6,r7} + .cfi_restore 7 + .cfi_restore 6 + .cfi_restore 5 + .cfi_restore 4 + .cfi_adjust_cfa_offset -16 and r1,r1,#0xff @ r1 back to a single character and r2,r2,#7 @ Leave the count remaining as the number @ after the double words have been done @@ -350,11 +374,11 @@ memchr: 40: movs r0,#0 @ not found - bx lr + pacbti_epilogue 50: subs r0,r0,#1 @ found - bx lr + pacbti_epilogue 60: @ We're here because the fast path found a hit @ now we have to track down exactly which word it was @@ -378,9 +402,24 @@ memchr: addeq r0,r0,#1 61: - pop {r4,r5,r6,r7} subs r0,r0,#1 - bx lr +#if __ARM_FEATURE_PAC_DEFAULT + pop {r4,r5,r6,r7,ip} + .cfi_restore 143 +#else + pop {r4,r5,r6,r7} +#endif /* __ARM_FEATURE_PAC_DEFAULT */ + .cfi_restore 7 + .cfi_restore 6 + .cfi_restore 5 + .cfi_restore 4 + .cfi_def_cfa_offset 0 +#if __ARM_FEATURE_PAC_DEFAULT + aut ip, lr, sp +#endif /* __ARM_FEATURE_PAC_DEFAULT */ + bx lr + .cfi_endproc + .fnend #else /* Defined in memchr-stub.c. */ #endif -- 2.36.1