From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50075.outbound.protection.outlook.com [40.107.5.75]) by sourceware.org (Postfix) with ESMTPS id 67CC13858016 for ; Wed, 28 Sep 2022 14:32:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 67CC13858016 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=hvvgibspsvxVNjPxYwnW+jDzJGsOQ9/oA0WfvKYOdhPFEDG2hPisToKnFok8f+tsiV5ACMUHBElTA0j0uEN6kGRaMTw+cf6gjuTDyIjcib6iVnFsr9lyymTY48h6jgbuXOMQhEdd/ERPgj7f8B+ug3tVgPj4WgTGY0uzaMufWAt02offQ9O3+XHwgGFSvkPoIVvx0LNtKi8sCUf49tDLD+l40AXfllJFKsA2Sz5cQNF1Ij4RcimKh32HJ6tc8OX/8VyT6FBao8U+Ik/VqDyHgcov+HMcqrEekc9U/1l6YyUjw0XkVCeN/DKsagO/2PLP2XP5LFc1vSqq3djV4giQcw== 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=b5waxE8QpwZN1bRWPpaoSXOOrgO3IAruHuP6SFNt9zk=; b=S1hYPg6yEz0viLeDMsxf9HXFs2i17rwj37BcXFVuYPIKxkeqAfkqAvDIKDV/6du0IP+opYuAvVJawcCJdrR/mSwudyu9qbGAXnqMHHjrMfyuS4sZ6rNaRGUswxA4SUkeEEkj10GpumAFJWnKT/3mOcWTT6Qpsc9s7sURFu0+YxAhOHGXDCh3nWMIzq/s1ArGqERpyFS3ivRkOtQ7AyhU7YSjYh/RUpVQPlgzojhYQ7tCKFF4oA4gtIXpP/gEd2eHHJ8EFEkFa5AXxYTrNcyC6ovvkYUG24zqx8SzTNG2CbN2JeCLS9ZEOdReI/9+2kv28MglOoMtXBvaabxmcZ18Fw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.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] dkim=[1,1,header.d=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=b5waxE8QpwZN1bRWPpaoSXOOrgO3IAruHuP6SFNt9zk=; b=PQtyfLselitu7wVohLE6SnULMFcpsRggOJRhwBaEtc/UBn6gDYP7dUCoG/fzMXsLyedwv4sB1TuqXwebIGyqJKwZsAijWmy2TXap/PBwMKYWGtNwNG0acXj7dVWJ3sF8624GhFa0AmZ9kVSqsMZ84LNNVK4jMxn1LZfKULxX5VY= Received: from DB7PR05CA0067.eurprd05.prod.outlook.com (2603:10a6:10:2e::44) by PR3PR08MB5802.eurprd08.prod.outlook.com (2603:10a6:102:8a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.15; Wed, 28 Sep 2022 14:32:22 +0000 Received: from DBAEUR03FT015.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::c0) by DB7PR05CA0067.outlook.office365.com (2603:10a6:10:2e::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17 via Frontend Transport; Wed, 28 Sep 2022 14:32:22 +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 DBAEUR03FT015.mail.protection.outlook.com (100.127.142.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17 via Frontend Transport; Wed, 28 Sep 2022 14:32:22 +0000 Received: ("Tessian outbound 99ee3885c6d5:v128"); Wed, 28 Sep 2022 14:32:22 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9eea6c18cad6bda1 X-CR-MTA-TID: 64aa7808 Received: from 50fab8d201bf.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5B69E4C2-BC3C-4A6A-BDB7-820ABB3CA9F6.1; Wed, 28 Sep 2022 14:32:15 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 50fab8d201bf.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 28 Sep 2022 14:32:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C4GnzdFXmz2laUmcNlqI9nlv1cKV0Lhu9wh3SzjlaSLwHBxipoCH09yYrFOL0lloicxBvjpxqyn9+Hmi1PHVRSpe2wEDi046VfMNnacgedcCDbTVzcXR9yRZGIqDJGPf7C6ABYCCIA63hhaqFCvvNJq+h3QMkHgLf1ajiJEpDCesE5QixVQtzyDHSpwON7XdBjFEdPXCjSbW3bzqA6vCoF5mfOgDLeCIxHjSPBFE+6Ge8NkMkgCSfMp77OdNacsEYghY8WdppaP8rRQhP+XvGStZGzm+1OrL//Jv8TletnEgZEdQRZzr4Fp1Dp8bTmY+Yx67R0WhwfbHTTPs36Xa4A== 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=b5waxE8QpwZN1bRWPpaoSXOOrgO3IAruHuP6SFNt9zk=; b=kxxja3cbU/x7jFUuucJ+GJxIQRM97tzFol1vb0tkPs8VwiTjVdldcdz3/tQMPzY7A2P6arqGfIjwxjO06MnUczRMs3Qw5mY+rZ9ja0aH8j4jLhCww/06CPE9Q4Rxuh1lwqvHmsPkdLHpMdWl7Inkq49b+bzbkHmHjKAB1qLE68GUlnvfXbVmxp6BEZujQCd8UrYkG4hrVBsxvU+DPXjliyZzBn5YPM2Bcz27Zq3Be79KNqDeP+H1CAuzSv0fdMLLr7rndbhjNF2BcbwxSYHTMprSM4CKtD5FNM0jEzEbhKAXolnuJCXm+ec3P4d/mPT73gmJn9XUgxwtIK0FKqGYOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=b5waxE8QpwZN1bRWPpaoSXOOrgO3IAruHuP6SFNt9zk=; b=PQtyfLselitu7wVohLE6SnULMFcpsRggOJRhwBaEtc/UBn6gDYP7dUCoG/fzMXsLyedwv4sB1TuqXwebIGyqJKwZsAijWmy2TXap/PBwMKYWGtNwNG0acXj7dVWJ3sF8624GhFa0AmZ9kVSqsMZ84LNNVK4jMxn1LZfKULxX5VY= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3390.eurprd08.prod.outlook.com (2603:10a6:803:7d::27) by PA4PR08MB6077.eurprd08.prod.outlook.com (2603:10a6:102:e7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Wed, 28 Sep 2022 14:32:13 +0000 Received: from VI1PR08MB3390.eurprd08.prod.outlook.com ([fe80::245e:8d78:47b5:4e3e]) by VI1PR08MB3390.eurprd08.prod.outlook.com ([fe80::245e:8d78:47b5:4e3e%4]) with mapi id 15.20.5654.026; Wed, 28 Sep 2022 14:32:13 +0000 Message-ID: Date: Wed, 28 Sep 2022 16:32:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: PING^1 [PATCH] testsuite: 'b' instruction can't do long enough jumps Content-Language: en-US To: Torbjorn SVENSSON , gcc-patches@gcc.gnu.org References: <20220919163040.4104646-1-torbjorn.svensson@foss.st.com> <9ffd26d4-a14f-2ffa-e6e5-750331fd3cdc@foss.st.com> <5c21c50f-c75c-6cc7-4994-85a1f9892020@foss.st.com> From: Christophe Lyon In-Reply-To: <5c21c50f-c75c-6cc7-4994-85a1f9892020@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SN1PR12CA0065.namprd12.prod.outlook.com (2603:10b6:802:20::36) To VI1PR08MB3390.eurprd08.prod.outlook.com (2603:10a6:803:7d::27) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3390:EE_|PA4PR08MB6077:EE_|DBAEUR03FT015:EE_|PR3PR08MB5802:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b52a352-063b-4dbb-549f-08daa15e4158 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: rqD5ZCfobkJDkN5xWu9ObbjibR+xKim+D00aAVTR/MSSirITEJYGSAWBnSwmnPyj8ABmzDiRD0JBwhJhqlXnJ6ZcTMSyw2xO3vru9lZKS3JIAUROE1o96V7Qnj6kpcxwXD0O6Q1MI70x0InCz/5NGUk6OSCxv4Nv6mqZSTt0A0jKxIXgSSwH4IncuKt85yGlt+r0W1Jn2MPRVxX/F6hND3d3hT5B6OwPR6480MYXlX8mxMw1bxJe60R0XVUg7/Nlv4vqmHyZqbavvomhC4clkJ3peY8r1toPBulluUMRbhkYZ1loKXGHjWvPygzJCwd9hBdy8ILsNaCKpXO80gSKbxJbrwaZvw8CNlWdpN8LJMVRAhRt31DcOhPK158iKfGw4nvl5F4rXaAvM+1ip0IvSaTD5rx+xy2B27uqNP1NF+E7iUg2voTpjifenDgmlNIF0m734GHBmah9ON3mAAIc3jhwBkV3d8dQCIOP4sFVdNzIIqx/qBR3RHQVR+aQ3bEOgaYybjDhXeU1gd1dqerEaJFo9c/UyCIAHu/FC7itHGyiCdNCMeELWX+JiF2pAcVwFTYQS82VQ1RXFOhYUCJhy0EUifYQcM8sRE0BtWolrnnEnpe/a8rlK2MEy+9pzPHzj584ONrUhjOKENpPHtmPGvklyH4phieHWju2Bsq0/VGkN+QiRhko45UL4JYaZrNnas7FxtTtHprdjKeFW2v1gy0/e+SSByJftPD8YwiIUz10zCrM9bWYc3wP3YJD/ZyVUnDoQ3LkKh8GL2V9yBXcZ6sePomeMLoKnTcPw14n/GFA8WnOlythAzClC6IDPvb3eNqJoMja9TTogWSUpyKJOMqWx2+OTgxOCd/+60k4SuU= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3390.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(396003)(136003)(376002)(39860400002)(366004)(451199015)(38100700002)(6486002)(316002)(5660300002)(66556008)(36756003)(44832011)(86362001)(8936002)(8676002)(66476007)(66946007)(6512007)(2906002)(2616005)(966005)(31696002)(41300700001)(83380400001)(6666004)(186003)(478600001)(53546011)(26005)(6506007)(31686004)(81973001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6077 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b9245b80-a5a8-4788-ab7b-08daa15e3ba8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xYj6TrITt/vPYVQYe8RzpkF2EomnJ/sVRiC6MdFCFkJC6IbJEkAvNnxJ49dTUgeASjyePnsynEH2ibKwDPL+OZB5K2Z6eHk1dshicfyxW8ZvEVwglJziwV7gB1X7Z1p+cu+yP1KGaJs/fPAefZ2IxGhZ7zigZu7iyAT+s7Syu1qXVL5V44VYRMyfqvyWDxfcfXdcZANSB4XZJpvnSjApdJLZldG+RwRUwaR4NHxvFFPdqxpCs318cYZWHYwke0S2WyfRa+BkaJ5BQhjdrONP4c8yT7jws6u/s409w/kREsH4T+6jIHHkxilAfc6VUHKMFdcMFkmY2Fkvd9c6XbsZBaZyFE36CZm9fP3ZhN3AbbtASSpA98drs0patLfSfAWiI4txOAQ7Y6xiS5l8XBRN9jZRotS/J4iLn1DMOW9VDBGjSGXqeLeF55mBR+fn4pFdgz39wm64tdOLqc+hwcEG1aTI96fCz4dxn/BxuoyeUXkk8DeFNox4QqyixWoeGhXtR3wz/rAv7synPjfl3p08vBsmEx4WjBlyYVbND2R1u5/HglpFp/JstazmTo3Yn7QcOAB9pPYACgUI2qw+nq/7/bnq+oOw2XN4MV7rtxOvVWcqzphHWy3CMwTm489QhQkVlVklhQWow1RK2JRlVzUtfMCEVq7HiDXRHJYeSdoi3upnisstebzNleVF5L4pKigeE+3WwwIS2i4b6VCB8M+3ftcr8uAFf0fCH7HK/wfe0f0524yL3AWouC5zAG78PaFPqod/6kQiMXirfD+hCkdh+rypmG0hKzqINBfGoCeD9UHfpQ38xNgJn3/asI+SBTnJIHcfPS6zDNORVEm5vz5/0r99T0pNkdYs88fQKggbijQ= 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:(13230022)(4636009)(346002)(376002)(396003)(39860400002)(136003)(451199015)(40470700004)(46966006)(36840700001)(82740400003)(5660300002)(6506007)(53546011)(47076005)(6666004)(336012)(31696002)(6512007)(8936002)(2906002)(40480700001)(41300700001)(81166007)(40460700003)(44832011)(36756003)(6486002)(478600001)(966005)(356005)(86362001)(26005)(31686004)(82310400005)(83380400001)(186003)(8676002)(36860700001)(2616005)(316002)(70586007)(70206006)(81973001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2022 14:32:22.1652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b52a352-063b-4dbb-549f-08daa15e4158 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: DBAEUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5802 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 List-Id: On 9/28/22 15:39, Torbjorn SVENSSON wrote: > Hi Christophe! > > On 2022-09-28 13:55, Christophe Lyon wrote: >> Hi! >> >> >> On 9/28/22 11:17, Torbjorn SVENSSON via Gcc-patches wrote: >>> Hi, >>> >>> Ping: >>> https://gcc.gnu.org/pipermail/gcc-patches/2022-September/601829.html >>> >>> Kind regards, >>> Torbjörn >>> >>> On 2022-09-19 18:30, Torbjörn SVENSSON wrote: >>>> After moving the testglue in commit 9d503515cee, the jump to exit and >>>> abort is too far for the 'b' instruction on Cortex-M0. As most of the >> I am not sure I understand why that commit changed the distance >> between 'exit' and the branch instruction? > > The change was that the gcc_tg.o (the DejaGNU testglue.c object file) is > now put last on the command line. In the previous versions of GCC, it > was put before the ldflags flag etc, so now the code is placed in a way > that the distance might be too big. > > This could also be related to that we in ST are using QEMU in system > mode and not user mode and as a result, our test environment is slightly > larger and might perhaps be placed in between the code for the test case > and the testglue. > Thanks, that makes sense. >>>> C code would generate a 'bl' instruction instead of a 'b' >>>> instruction, lets do the same for the inline assembler. >>>> >>>> The error seen without this patch: >>>> >>>> /tmp/cccCRiCl.o: in function `main': >>>> stack-protector-1.c:(.text+0x4e): relocation truncated to fit: >>>> R_ARM_THM_JUMP11 against symbol `__wrap_exit' defined in .text >>>> section in gcc_tg.o >>>> stack-protector-1.c:(.text+0x50): relocation truncated to fit: >>>> R_ARM_THM_JUMP11 against symbol `__wrap_abort' defined in .text >>>> section in gcc_tg.o >>>> collect2: error: ld returned 1 exit status >>>> >> Anyway the change seems sensible to me, I suppose it's not worth >> adding support in the linker to insert long branch stubs for these >> relocations. > > If a simple 'bl' instead of 'b' is enough, I think that this trivial > change is the right one as the test case is supposed to test the stack > protection, not branching, right? > Yeah, agreed, I just meant to say a linker patch in addition to this one is probably not worth the effort. Christophe > Kind regards, > Torbjörn > >> >> Christophe >> >>>> gcc/testsuite/ChangeLog: >>>> >>>>          * gcc/testsuite/gcc.target/arm/stack-protector-1.c: Use 'bl' >>>>     instead of 'b' instruction. >>>>     * gcc/testsuite/gcc.target/arm/stack-protector-3.c: Likewise. >>>> >>>> Co-Authored-By: Yvan ROUX  >>>> Signed-off-by: Torbjörn SVENSSON  >>>> --- >>>>   gcc/testsuite/gcc.target/arm/stack-protector-1.c | 4 ++-- >>>>   gcc/testsuite/gcc.target/arm/stack-protector-3.c | 2 +- >>>>   2 files changed, 3 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/gcc/testsuite/gcc.target/arm/stack-protector-1.c >>>> b/gcc/testsuite/gcc.target/arm/stack-protector-1.c >>>> index 8d28b0a847c..3f0ffc9c3f3 100644 >>>> --- a/gcc/testsuite/gcc.target/arm/stack-protector-1.c >>>> +++ b/gcc/testsuite/gcc.target/arm/stack-protector-1.c >>>> @@ -56,8 +56,8 @@ asm ( >>>>   "    ldr    r1, [sp, #4]\n" >>>>       CHECK (r1) >>>>   "    mov    r0, #0\n" >>>> -"    b    exit\n" >>>> +"    bl    exit\n" >>>>   "1:\n" >>>> -"    b    abort\n" >>>> +"    bl    abort\n" >>>>   "    .size    main, .-main" >>>>   ); >>>> diff --git a/gcc/testsuite/gcc.target/arm/stack-protector-3.c >>>> b/gcc/testsuite/gcc.target/arm/stack-protector-3.c >>>> index b8f77fa2309..2f710529b8f 100644 >>>> --- a/gcc/testsuite/gcc.target/arm/stack-protector-3.c >>>> +++ b/gcc/testsuite/gcc.target/arm/stack-protector-3.c >>>> @@ -26,7 +26,7 @@ asm ( >>>>   "    .type    __stack_chk_fail, %function\n" >>>>   "__stack_chk_fail:\n" >>>>   "    movs    r0, #0\n" >>>> -"    b    exit\n" >>>> +"    bl    exit\n" >>>>   "    .size    __stack_chk_fail, .-__stack_chk_fail" >>>>   );