From patchwork Thu Sep 13 07:41:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 969270 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uL5Ji0EN"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="EUhMWOfk"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 429rFf18p8z9sB4 for ; Thu, 13 Sep 2018 17:41:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Xy7+ySLXU8apAMfvnOtIUcxuKzXsO/5GrEeZ2xNGV0M=; b=uL5 Ji0ENF1bRP2/E4Kwt/dBm5qAioTd0or+nYKT8q+PX3TiN7r22f0lVN2ERAgsu6ZdzyNcNqKkXVS9Q L1StFsoFRpkfyWPQ1P+9IPsquK0mI7Bmjm/d6qc4NWurkruBJNQyiqYZxRoH3QKgTX1CP66AmyWJm KMy6XHYTDiuU9BiqEkB9bhsZR3gWP9x0+3GlBLiLCBdN7oOfEvizjixJlOx4upIC9VnaGvXW5/exG qLeX14sB9mMx7EHBdhpxW63xM4xyyxrMCnTSLKoDEVciuiJXWk2ohAfxu6uGNxlcAcohQSTak37z/ 9XNNdA3Yov+MV3ytT7yPRBe6j88NPTQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0MG9-0000So-Af; Thu, 13 Sep 2018 07:41:53 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0MFk-0000Dd-Vd for linux-snps-arc@lists.infradead.org; Thu, 13 Sep 2018 07:41:30 +0000 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id AF02E24E0636; Thu, 13 Sep 2018 00:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1536824477; bh=GDjHrxCw0T4GMk+semJHH80h7Gc/HALVtawh2B9A1S8=; h=From:To:Cc:Subject:Date:From; b=EUhMWOfk/KwXMGebC+5JL/aIzHERosYgKpzeXxxHIjsi+oHIPL70xZ8V3SSTaV2JN VxuX3zUEcuFPKzv9L+mEuSeEurAPEwQCPRjQZ4Fv6EBeiBQAgoIksxS1HWqqi+mDue /rKBA/RWwpLICHAtumujfb6ho7NdmSukFhuWHJNSu1duPWQ96w231Ui6PzXQjiQtSL uYo8QyuIswqa0PuE7MwXBYMVNHH66SdAaxMR7pEwzK0k35bXocuvme4GNad9Tvlmbj /004kB1lfKmeisaVI5+3o9iBE5S8hlCLuOSdiYQwm1kumc2DOfLU9NUhJPe5lUZ2/F OkXTm5eH48TmA== Received: from abrodkin-7480l.internal.synopsys.com (abrodkin-7480l.internal.synopsys.com [10.121.8.87]) by mailhost.synopsys.com (Postfix) with ESMTP id 3D6713942; Thu, 13 Sep 2018 00:41:15 -0700 (PDT) From: Alexey Brodkin To: gcc-patches@gcc.gnu.org Subject: [PATCH] [ARC] Fix generation of specs Date: Thu, 13 Sep 2018 10:41:10 +0300 Message-Id: <20180913074110.6431-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180913_004129_062003_AA23322A X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-snps-arc@lists.infradead.org, Alexey Brodkin , Andrew Burgess , Claudiu Zissulescu MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org With no trailing space in LINK_EH_SPEC linker spec gets generated as: ------------------------>8--------------------- %{!r:--build-id} --eh-frame-hdr%{h*} ... ------------------------>8--------------------- or even worse if hash style is added: ------------------------>8--------------------- %{!r:--build-id} --eh-frame-hdr--hash-style=sysv %{h*} ... ------------------------>8--------------------- Now if that spec is really used by LD then it fails inevitably saying that it doesn't know option "--eh-frame-hdr--hash-style=sysv". Cc: Andrew Burgess Cc: Claudiu Zissulescu --- gcc/config/arc/linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/arc/linux.h b/gcc/config/arc/linux.h index 96d548eae341..62ebe4de0fc7 100644 --- a/gcc/config/arc/linux.h +++ b/gcc/config/arc/linux.h @@ -98,7 +98,7 @@ along with GCC; see the file COPYING3. If not see Signalize that because we have fde-glibc, we don't need all C shared libs linked against -lgcc_s. */ #undef LINK_EH_SPEC -#define LINK_EH_SPEC "--eh-frame-hdr" +#define LINK_EH_SPEC "--eh-frame-hdr " #endif #undef SUBTARGET_CPP_SPEC