Message ID | 20181011133518.17258-14-christophe.lyon@st.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2141020lji; Thu, 11 Oct 2018 06:40:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV62GR7KW0ebuPpjSFMVbQfYdlkG7YHED6Alzi6BH4z5x7gtCj5R3JQp6ny3/Am8lzVxs65Ax X-Received: by 2002:a63:5d03:: with SMTP id r3-v6mr1490925pgb.445.1539265212282; Thu, 11 Oct 2018 06:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539265212; cv=none; d=google.com; s=arc-20160816; b=IwZyZv60DvSCA/5tMkMQmNUdbHw5ALMMHeiq5XLLR4qoRd6vFYkoa+0kLW2GtyXkAR wfPH+LpyEJkAMrPd0V04mius1ygfHABycj0n2+2DIYqJ3JWbQWYFTmEZ4L8K4AVSF4Z2 +RAatNoRwcRE0YucSIbpucsYZZkWDucG0y/5NBhEmRsCVEUu0H7r9aXMvAGozdJnmfCI KhylVfCIvV8cy/4kKZ1yv2Kl8TcuDwrc5b5CfVf2MmYOa4HAPQGdGGl0XQm58IHEwQXZ 6c+zpxOulT7WcUq6t1iU4Pd+SAaL1tl1BifzGM3nJawIZOdaCH74Aj6Ur3SYWyHU8cE0 g6BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature; bh=cHl2PUgm9VZrqHbeIwCfV/Fb2uBseeIxyXbkvN/1eMM=; b=GmrIdznG+DJEXJ0S2YdQvHptYFtWm6LFVCvNm3Jc+sMYduJ6j44TrIfaLtpKrAP7sa vzLGwHhY7+wVoJRXHbi6SPk4SHH2ckxui4h4i7OWkUsiuFrBcNjrhZHDSpxcrIMhFLfR lEVPdF6CS9p4v4B0pm9fUx6YCyEodv/gbXHv9yZRmwwXBKYoEgtRI0YuCM6odRDnpT+m dLJ5DxjlvWg0SvXenU9O9XjC75Q30SpQ9NZTgpK+Uvqho+j+Mrq7uCDkbgx4cPq9uqll panwFA3n/Ii3DEsEg7fz2nVi8+UltMDrQdELxyiZOyRVwY0VanyeRVzGUIbiv0fZfEQ8 GjXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=HDbbojof; spf=pass (google.com: domain of gcc-patches-return-487344-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487344-patch=linaro.org@gcc.gnu.org" Return-Path: <gcc-patches-return-487344-patch=linaro.org@gcc.gnu.org> Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id s27-v6si26389510pgl.405.2018.10.11.06.40.11 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 06:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-487344-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=HDbbojof; spf=pass (google.com: domain of gcc-patches-return-487344-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487344-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=PY7SedGOfheV+CxzeB3r3gxs91ezSry02XdrARJfU9SELTigsUIZa 88Bn++7gLkJARnS1t69szbkw+AU99V66dEdP26hMK9AjQ01hPyFXsaoq5sHFeqh/ BLsTMcwL0/4BaXOdyDvqpdq75ZFhY5CFhCYQx7edCNi1GRm+pgAbT4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=ZJbCtrZZwervOlkyJTUg8ylnKDw=; b=HDbbojofYgKT7+oDGZTiF9OoQD/Y dsPMhpKduDiSBwfIEq8d7Aet4ZK0hhqLD0ZvUzOiuxwcZZGeBGZZbU8zHHECexRn nDU293SS1i4scBbridO8Wrt3iDagVI0g2MR/Ep0Ie2IwtPq8XUsqAF2y+cNmlZkP vCE3fRzZejTVE78= Received: (qmail 37765 invoked by alias); 11 Oct 2018 13:39:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-patch=linaro.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 37697 invoked by uid 89); 11 Oct 2018 13:39:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx07-00178001.pphosted.com Received: from mx07-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (62.209.51.94) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Oct 2018 13:39:57 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9BDdKhP016095; Thu, 11 Oct 2018 15:39:55 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2mxjgy5m9x-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 11 Oct 2018 15:39:55 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EF64B34; Thu, 11 Oct 2018 13:39:54 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DF347554F; Thu, 11 Oct 2018 13:39:54 +0000 (GMT) Received: from gnb.st.com (10.75.127.45) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 11 Oct 2018 15:39:54 +0200 From: Christophe Lyon <christophe.lyon@st.com> To: <gcc-patches@gcc.gnu.org> CC: <christophe.lyon@linaro.org> Subject: [ARM/FDPIC v3 13/21] [ARM] FDPIC: Force LSB bit for PC in Cortex-M architecture Date: Thu, 11 Oct 2018 15:34:50 +0200 Message-ID: <20181011133518.17258-14-christophe.lyon@st.com> In-Reply-To: <20181011133518.17258-1-christophe.lyon@st.com> References: <20181011133518.17258-1-christophe.lyon@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes |
Series |
FDPIC ABI for ARM
|
expand
|
diff --git a/libgcc/config/arm/unwind-arm.c b/libgcc/config/arm/unwind-arm.c index 564e4f13..6da6e3d 100644 --- a/libgcc/config/arm/unwind-arm.c +++ b/libgcc/config/arm/unwind-arm.c @@ -198,6 +198,11 @@ _Unwind_VRS_Result _Unwind_VRS_Set (_Unwind_Context *context, return _UVRSR_FAILED; vrs->core.r[regno] = *(_uw *) valuep; +#if defined(__ARM_ARCH_7M__) + /* Force LSB bit since we always run thumb code. */ + if (regno == 15) + vrs->core.r[regno] |= 1; +#endif return _UVRSR_OK; case _UVRSC_VFP: