From patchwork Fri Feb 1 20:21:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1035148 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="rFefMin7"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="flDzAuJl"; 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 43rpRn2PFGz9s6w for ; Sat, 2 Feb 2019 07:22:09 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=NdfPGEHu51MhAfbjHXJILJZzXVFZg6iZInpXtdf+5Jw=; b=rFefMin7NpF4dY jJcFeOzngk+HkBCl/AOftFavaWnUKM6IeW4TGXpQc8hU1N/ng/fSBeryjlBAG93leqrwSc38eh24e YWXd14zsLi+hr81oZrY22TOEcMyRWOAe3xyaawwbrukn2gy8HmTLcQeNp2UZwg8ofW0JTYF8De6Yy YXVuv8Mkn2e/xTP4pWCffm2njxOio9oGho8BYSxdhvJ+Cwj6QEfRo/Hlg/uf1naiq3gJ/Y0d/EejN uIypT5+92eX7xp16sTs56gdI5Tao7+JlPHbN4GnNy3SHtOuxI4qOt3Q9Su5T/81V/dHnXu3ZGyYxp MbtNKH/1bwDgulL5MNNQ==; 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 1gpfK9-0007as-Pp; Fri, 01 Feb 2019 20:22:05 +0000 Received: from smtprelay4.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 1gpfK6-0007YP-DF for linux-snps-arc@lists.infradead.org; Fri, 01 Feb 2019 20:22:04 +0000 Received: from mailhost.synopsys.com (dc8-mailhost1.synopsys.com [10.13.135.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id 8C8CC24E25B3; Fri, 1 Feb 2019 12:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1549052520; bh=FYGXN31rQapGHh3/NhKZnk78TpLzzARpdNYE0D3mAr0=; h=From:To:CC:Subject:Date:From; b=flDzAuJlY7OE+vs9ipnvzjyRA3A4gA8F8TkgW3LuAukv1vFD3pYEKkaYae4R7QLZ+ Ir4zHuJW3E5hFlmM1Y1G+n8VNfnM006QDlyvUy1iGtpvMptelPCyr8AILceNuHzGfr Ja8KpL9SoPA+nIZjFOQsuz5G74TOl+fiax9ulS/kEB5sIIlDjswi+YTP4ujtqHuPOX gDheuQKaLeYUiUQQDcENMbiAz+a5DO9l/s4ESOAUVtfM2msLZKbUUGmziZYvatBrkc hnoCNWwTT+5OGClmMX0vwfke7YmLw7QfeurkxIKV9/Fx2lwi2LifVqcn9QnYqzTFHH b6VepM21EUfhg== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 4D482A0074; Fri, 1 Feb 2019 20:22:00 +0000 (UTC) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 1 Feb 2019 12:21:36 -0800 Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.105) by IN01WEHTCA.internal.synopsys.com (10.144.199.103) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sat, 2 Feb 2019 01:51:38 +0530 Received: from vineetg-Latitude-E7450.internal.synopsys.com (10.10.161.70) by IN01WEHTCB.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sat, 2 Feb 2019 01:51:32 +0530 From: Vineet Gupta To: Subject: [PATCH] [ARC] don't force _init/_fini as DT_INIT/DT_FINI Date: Fri, 1 Feb 2019 12:21:18 -0800 Message-ID: <1549052478-965-1-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.10.161.70] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190201_122202_485360_D6B29DCF X-CRM114-Status: GOOD ( 12.33 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -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.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: cupertino.miranda@synopsys.com, Vineet Gupta , linux-snps-arc@lists.infradead.org, Claudiu Zissulescu Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Recent gcc commit b4371b277f1e ("[ARC] Enable init_array support") inhibits DT_"INIT,FINI} in favor of DT_{INIT,FINI}ARRAY. Even prior to that, it seems ARC port is the only one with this special DT_INIT/FINI handling in linker emulation. Removing it doesn't seem to change any uClibc/glibc testsuite results, so this can RIP anyways. bfd/ 2019-02-01 Vineet Gupta * elf32-arc.c: Delete init_str, fini_str ld/ 2019-02-01 Vineet Gupta * emultempl/arclinux.em : Delete special INIT/FINI handling. Signed-off-by: Vineet Gupta --- bfd/ChangeLog | 4 ++++ bfd/elf32-arc.c | 9 --------- ld/ChangeLog | 4 ++++ ld/emultempl/arclinux.em | 27 --------------------------- 4 files changed, 8 insertions(+), 36 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5547cd26b9bb..8fcf44e8d315 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2019-02-01 Vineet Gupta + + * elf32-arc.c: Delete init_str, fini_str. + 2019-01-21 Sergio Durigan Junior * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index c7469ded8acf..1ced270f3b15 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -72,15 +72,6 @@ name_for_global_symbol (struct elf_link_hash_entry *h) } -/* The default symbols representing the init and fini dyn values. - TODO: Check what is the relation of those strings with arclinux.em - and DT_INIT. */ -#define INIT_SYM_STRING "_init" -#define FINI_SYM_STRING "_fini" - -char * init_str = INIT_SYM_STRING; -char * fini_str = FINI_SYM_STRING; - #define ARC_RELOC_HOWTO(TYPE, VALUE, SIZE, BITSIZE, RELOC_FUNCTION, OVERFLOW, FORMULA) \ case VALUE: \ return "R_" #TYPE; \ diff --git a/ld/ChangeLog b/ld/ChangeLog index 5713b0020c64..647e343d21b5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2019-02-01 Vineet Gupta + + * emultempl/arclinux.em : Delete special INIT/FINI handling. + 2019-01-31 Alan Modra * NEWS: Mention -t change. diff --git a/ld/emultempl/arclinux.em b/ld/emultempl/arclinux.em index 3163712fbd0e..796c89085e34 100644 --- a/ld/emultempl/arclinux.em +++ b/ld/emultempl/arclinux.em @@ -23,30 +23,3 @@ # This file is sourced from elf32.em, and defines extra arc-linux # specific routines. # -cat >>e${EMULATION_NAME}.c <