From patchwork Mon Sep 9 15:45:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 173412 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp4542350ilq; Mon, 9 Sep 2019 08:53:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6MguYilEsQcO4qgGN6968b5JBrFbLodF6gRgqdMSt2rYGuDso2/MNNPIP7/XZJJQ6U32W X-Received: by 2002:a50:8dcb:: with SMTP id s11mr918266edh.27.1568044422224; Mon, 09 Sep 2019 08:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568044422; cv=none; d=google.com; s=arc-20160816; b=VMOzMoI9p0j6ZSPYQaeCoH1igPbMqSy1sj0Zbg+B15deELisa/TtA79hPROSU+tycu 7iGj6i2T+4FlXHVcZ4j51vF5p2Mb0rXXDgTRFUSl9qezymZS/oEyrAdq+2kqxl2Hoy2Y rNSa4fDukSjpdmSJHQUHaJCd2T076p9y63D/ksBNlUovWr/arnKguV7lKTRbREPUY9X/ LElEYu5aHXEkzMaHZ29bl/2oXw4b/EZmfA+PZpHrkTrflHPcA38x522NX5F2TFD6SY0U lriowWCbZfc8efuhpRe3k/oCmpfxehYBoPRJRV2BxA+35IujNMraQY2BfWmgxAF8+lKn mcRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=SOkjjfACemC2p0XY5xL48RW5iBDf61PzVXxG+ERhVfM=; b=njA2+Fwl3oM/764APcN9F2yuQt4qbTgTUB/pzpdNBr0A3Q5hd6ZkfhqyHMFCsH+A3A eEqm3zIMb1HY7RgNMJGO7FQHXjMubfhycvWoHSx4Kj9R/C3+BfU4MMh8u1Yeiqpw4hAm hNRI18yvDNL6DQbouH6zrn3mjUr+zS3zwRb5antGfLeBf8ULYeBmjVAI3rNgGEivksVe wkvSgAshy4M7BD5UQ6zodBMZIenSsv83HhCdni4hVkX7yTZMAL0Wiuv3bgEZJuzEgMbM SByMw5iHQUIasjyVI4GLVZJoRQEQm8ksOUZe61RFs62MBL9bSmd/BUs7zlVXUbchA9uG l9+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="rLp2/G2e"; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=H8nnBptv; spf=pass (google.com: domain of gcc-patches-return-508666-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-508666-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 5si1698596edy.95.2019.09.09.08.53.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Sep 2019 08:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-508666-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="rLp2/G2e"; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=H8nnBptv; spf=pass (google.com: domain of gcc-patches-return-508666-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-508666-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:subject:date:message-id:in-reply-to:references:mime-version :content-type; q=dns; s=default; b=GzmnAPmNSimyVrlWx/ROELBq860w6 y2kGmE+joGSHztUUBzFi9TQKztbKQwtxYWQXtvqjIanjb5TToqKoqjIJSdHDWZNw KAvk8b6SA3CPsMErKflxvm1/MqraD2SVEZP+8tvF7s5fXmHUJg0XFh5OFyu0CN50 V0N/IbooTVWdVI= 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:subject:date:message-id:in-reply-to:references:mime-version :content-type; s=default; bh=YpjqxyXDyrb0cmKZ5KDxNiBfBW8=; b=rLp 2/G2eyZZIxjaUG3KIubRXrO+5GvPkc0ouNdj7BRy/HuXbkJOFsWdyTuF/NvCnCnH C6XewAnwJYIxLDnaI2deoTIdSK4W7c0DQDYSw3fQ1fHqwDBnEdlY3L7P9VMJt8Ew 9VEIsesIdOm/EgerNzzHfinauQEsEJ/00OAyWlCE= Received: (qmail 18835 invoked by alias); 9 Sep 2019 15:53:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 18822 invoked by uid 89); 9 Sep 2019 15:53:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.1 required=5.0 tests=AWL, 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.1 spammy=armv7-m, armv7m X-HELO: mx07-00178001.pphosted.com Received: from mx08-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (91.207.212.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Sep 2019 15:53:28 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x89FpHtZ007289 for ; Mon, 9 Sep 2019 17:53:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=SOkjjfACemC2p0XY5xL48RW5iBDf61PzVXxG+ERhVfM=; b=H8nnBptvCTji9LG3NUH3Hbj/EVptpKUkp9rAb7OLKfRT+fT5swFPOFiQeyYcDBfYUgFO 4BK1d2v6NBRVfN+xr6atpx6ENm2KGkXW62SUW3IogscWcvhOqAXLyu71RVEZNXKvR+eu kPD8Irw0ZtQ3cL9Ykodf876Gp6Q2qV3jbvjIr9u9OLFJ9ir8pbOfy33Vhd4re9NgBDKw 6232miIpKefK4JXJ5q4mZaJ8l6knt9Gac1tHb6CBE4j1Zb+PSl9HLnV/GM9SVIq6NCcs n+10P7fzSV6FJt4sBXKEi3PuqSUaFXD2OEZ4Lx3BTJ84IgAOtP3AuKenp62BZb7Haqk3 1g== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx08-00178001.pphosted.com with ESMTP id 2uv1pa71hk-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 09 Sep 2019 17:53:26 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 5BE5A23 for ; Mon, 9 Sep 2019 15:53:23 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B7F592B2E79 for ; Mon, 9 Sep 2019 17:53:17 +0200 (CEST) Received: from gnb.st.com (10.75.127.46) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 9 Sep 2019 17:53:17 +0200 From: Christophe Lyon To: Subject: [ARM/FDPIC v6 23/24] [ARM] FDPIC: Implement libitm support. Date: Mon, 9 Sep 2019 17:45:05 +0200 Message-ID: <20190909154526.11630-24-christophe.lyon@st.com> In-Reply-To: <20190909154526.11630-1-christophe.lyon@st.com> References: <20190909154526.11630-1-christophe.lyon@st.com> MIME-Version: 1.0 X-IsSubscribed: yes From: Christophe Lyon The ldaddr macro in sjlj.S needs to be updated to support the FDPIC model. 2019-XX-XX Christophe Lyon libitm/ * config/arm/sjlj.S (ldaddr): Add FDPIC support. Change-Id: Ieb2c6613363341d109c3500af0575b133b17407d -- 2.6.3 diff --git a/libitm/config/arm/sjlj.S b/libitm/config/arm/sjlj.S index a9abf16..5d44964 100644 --- a/libitm/config/arm/sjlj.S +++ b/libitm/config/arm/sjlj.S @@ -49,7 +49,16 @@ .arch armv7-m #endif -#if defined(HAVE_MOVT) && defined(PIC) +#if defined(__FDPIC__) +.macro ldaddr reg, addr + ldr \reg, 99f + add \reg, \reg, r9 +.subsection 1 + .align 2 +99: .word \addr(GOTOFF) +.subsection 0 +.endm +#elif defined(HAVE_MOVT) && defined(PIC) .macro ldaddr reg, addr movw \reg, #:lower16:(\addr - (98f + PC_OFS)) movt \reg, #:upper16:(\addr - (98f + PC_OFS))