From patchwork Sun Mar 29 00:05:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 1263336 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=qwXqfHqh; dkim-atps=neutral Received: from sourceware.org (unknown [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48qbSv61jGz9sSQ for ; Sun, 29 Mar 2020 11:05:17 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1FA49385B832; Sun, 29 Mar 2020 00:05:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FA49385B832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585440315; bh=my1FceKTxSMu80RbqrTNb3apSgWrl8RHurSYUZ93HIM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=qwXqfHqhFcTyoBdpO4387rJTZDX+etwzg1f3FvfPw5/qUcp70+O1kJKwxdzSWfZ8o TtE+8EE3Ok23EpSZ1vA/GI1yn2sy0ig0yn0uOZ7oFKq1RMBzlWAtr13f5ULlduJGxh 34unim8Q+BeO9y3UPIylgyXmlR+YJ3F4Q0+cCSwY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.73.133]) by sourceware.org (Postfix) with ESMTPS id 79342385B831 for ; Sun, 29 Mar 2020 00:05:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 79342385B831 Received: from mailhost.synopsys.com (sv2-mailhost1.synopsys.com [10.205.2.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 7EE4D426A8; Sun, 29 Mar 2020 00:05:10 +0000 (UTC) Received: from vineetg-Latitude-E7450.internal.synopsys.com (unknown [10.13.182.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 9E706A00B3; Sun, 29 Mar 2020 00:05:04 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH] [ARC] Allow more ABIs in GLIBC_DYNAMIC_LINKER Date: Sat, 28 Mar 2020 17:05:03 -0700 Message-Id: <20200329000503.27897-1-vgupta@synopsys.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-20.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vineet Gupta via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: Vineet Gupta Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, Claudiu Zissulescu Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Enable big-endian suffixed dynamic linker per glibc multi-abi support. And to avoid a future churn and version pairingi hassles, also allow arc700 although glibc for ARC currently doesn't support it. gcc/ xxxx-xx-xx Vineet Gupta + + * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700 Signed-off-by: Vineet Gupta --- gcc/ChangeLog | 4 ++++ gcc/config/arc/linux.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86ad683a6cb0..c26a748fd51b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-03-28 Vineet Gupta + + * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700 + 2020-03-28 Jakub Jelinek PR c/93573 diff --git a/gcc/config/arc/linux.h b/gcc/config/arc/linux.h index 0b99da3fcdaf..1bbeccee7115 100644 --- a/gcc/config/arc/linux.h +++ b/gcc/config/arc/linux.h @@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see } \ while (0) -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-arc.so.2" +#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-arc%{mbig-endian:eb}%{mcpu=arc700:700}.so.2" #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" /* Note that the default is to link against dynamic libraries, if they are