From patchwork Thu Oct 11 13:34:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 148625 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2136722lji; Thu, 11 Oct 2018 06:36:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV60qKAr1uMFqyM/xq9HwGoNNb+9Gs7osOEyp08GRVO0+g+kUQItUTmcgbnb3sK3Z8XUNBW7U X-Received: by 2002:a62:38d0:: with SMTP id f199-v6mr1655341pfa.48.1539264969001; Thu, 11 Oct 2018 06:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539264968; cv=none; d=google.com; s=arc-20160816; b=yq3zTCaMNW//hH3ng1sTMMFoKqJK3KWPF/q5uBFzBDt7VVD8/dTXfmL30UNhdVXkSW 17nyOn2XGReHOjPdmYgdU2XZv0nyPzeB/G/TL+Bca4pTFmPhXCc8qkraGTmhY0GW++Wz DK02lXtOYgWn1ygME83XccZWYCzH5ZPikWu+iZ6piQnxEDn+vNAwwjTvO8AazyKXkcFS /vxTJm6PmnmrhmcMMgkixLTy/CFNHu85O747MeNXkO/nF9fJCr0shnx82E76v5NtCBAj zujky9+h8a6Gi+nC4+z/reWVBjeYbfHePKeW42WkGa53pF7IpS2qBUOm96+Qeyudf7zV zZ4w== 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=7rkzaatTvygnijjX4OwFiVnuH084nvOMaivpuhsqAfk=; b=f1gf4rS8XUJXFYaqzOFvQ1p7HUPB4Cx6r9s9xpMvvuz5m7A4DHp9eT5RpHKIgS7roU Y42+Cjei2zUb4GA/IV7UZcyhikomT4afIRJSNz5U0p2LjGBx3BU0AI1UfcuSghttSzTU do12BDe/uu1IVp3W4C5jBmcJe7am/IlNS3tuYTmcNEW0yIqutEQX2x4fWO/154zpYVKB tl7deDCyqlx3lXm+a5eDxiE+irqyjHscOZkmHSmIs/x5VKnAPhaP7fyW963u5rzta/O5 cP+RIIS4WUpg1q0kX3G/f8ArV8CfZ+PkMzbtu5Xz2vcv57utg+V9rpdfMdul3f5FlCDC 1yZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=xDhqJ5nr; spf=pass (google.com: domain of gcc-patches-return-487331-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487331-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 c19-v6si3068978plo.357.2018.10.11.06.36.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 06:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-487331-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=xDhqJ5nr; spf=pass (google.com: domain of gcc-patches-return-487331-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487331-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=r9jkYzseFm+bfrBeBmUaGx9Bg91qAh+LfFGQzoWXRt/IGolqu0cOk h/nda41ISsaqj090zHIvRDyO+BWi9KoFFjpxF1BJUb8gj9s+QbtNlCRiMWCSAstu pppuWp0gSuHsD4/horIYyRX7/4xLyY+gJart9UIFlbKFb9VgkiscVM= 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=NzHTa6Fzm97w+YjpnuPgjxijo1c=; b=xDhqJ5nr14/hBzAhKCO/PTsQH0mc bUe9eLoTXklrHW6grZhnWaK7C/PjTLr/+ZZLdqyQ+g6rjQGIxvihx8F18FMBaMG1 0H1qalhQhpVHZ6jANpWQ8K4aVITXQuqxJGzbA1851Ln+isB2ZIc7ULP//Ry/eras SnKL2lcnK/rrnZE= Received: (qmail 104130 invoked by alias); 11 Oct 2018 13:35:56 -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 103424 invoked by uid 89); 11 Oct 2018 13:35:56 -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=3023, joined, Specification, Hx-languages-length:1614 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; Thu, 11 Oct 2018 13:35:54 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9BDSulq004133; Thu, 11 Oct 2018 15:35:52 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mxkxfdbxm-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 11 Oct 2018 15:35:52 +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 0450334; Thu, 11 Oct 2018 13:35:52 +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 E67CA5530; Thu, 11 Oct 2018 13:35:51 +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:35:51 +0200 From: Christophe Lyon To: CC: Subject: [ARM/FDPIC v3 01/21] [ARM] FDPIC: Add -mfdpic option support Date: Thu, 11 Oct 2018 15:34:38 +0200 Message-ID: <20181011133518.17258-2-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 X-IsSubscribed: yes 2018-XX-XX Christophe Lyon Mickaël Guêné gcc/ * config/arm/arm.opt: Add -mfdpic option. * doc/invoke.texi: Add documentation for -mfdpic. -- 2.6.3 diff --git a/gcc/config/arm/arm.opt b/gcc/config/arm/arm.opt index a1286a4..231c1cb 100644 --- a/gcc/config/arm/arm.opt +++ b/gcc/config/arm/arm.opt @@ -302,3 +302,7 @@ When linking for big-endian targets, generate a legacy BE32 format image. mbranch-cost= Target RejectNegative Joined UInteger Var(arm_branch_cost) Init(-1) Cost to assume for a branch insn. + +mfdpic +Target Report Mask(FDPIC) +Enable Function Descriptor PIC mode. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5c95f67..3e33e60 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -684,7 +684,8 @@ Objective-C and Objective-C++ Dialects}. -mrestrict-it @gol -mverbose-cost-dump @gol -mpure-code @gol --mcmse} +-mcmse @gol +-mfdpic} @emph{AVR Options} @gccoptlist{-mmcu=@var{mcu} -mabsdata -maccumulate-args @gol @@ -17059,6 +17060,13 @@ MOVT instruction. Generate secure code as per the "ARMv8-M Security Extensions: Requirements on Development Tools Engineering Specification", which can be found on @url{http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf}. + +@item -mfdpic +@opindex mfdpic +Select the FDPIC ABI, which uses function descriptors to represent +pointers to functions. Without any PIC/PIE-related options, it +implies @option{-fPIE}. + @end table @node AVR Options