From patchwork Tue Apr 9 11:25:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Abdurachmanov X-Patchwork-Id: 1082150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-101264-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="yQncIvFE"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Z5JaSdBT"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44dlMy1vNkz9sPn for ; Tue, 9 Apr 2019 21:25:50 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=T5t 3kKQoR+bodA2u534Crsn8gKoDLSEXmLZ92FdFvQOp/zmC75iJNdel20kU5W/EIbW bDBdPD+uHomtnMdBFH1cZ5/6GpoHI6og+0WpB/Oses1kiWFoqukqMmb3n5LWPhXN fMLzFVSctNoHPQpylJEvio6TQDizMC1hSHEpEhok= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=X+wmT42ah nDvd64DPlREkkm41bo=; b=yQncIvFE11DfnpjJH3m37Lsd9Q9odv9zTWH6K3zgX DnSRWx3aHQOg19ruYQvkptp6gpmSo040bzv6LTcB5vhsztXD9uT9E7gaHQNz21Mu JQw6Ys/eL+46kTeJ6YJLXjTAQYyzzBE1eCzNFU0PXGKzAlrAJE16dNyvrFTj3bBe 1U= Received: (qmail 118919 invoked by alias); 9 Apr 2019 11:25:44 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 118533 invoked by uid 89); 9 Apr 2019 11:25:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=tracked, noticed, HContent-Transfer-Encoding:8bit X-HELO: mail-wr1-f65.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SSc9p+HadgiWMZMQWw7qTip/eFqQKro5qMSecU5AqTs=; b=Z5JaSdBTARIoMAlNEbuURCLo2T+Oa8D27df0XPbhPhf/etb/90l65vjKHQS1i6E2lg YcGJdZzeklDDh0QXGJS8i7FULIe1gbZexVgXCVQQ88f7ecdHSfw8dt7j7VSi+d3Wwkp5 fO+oPXcfrGdaf80Jv1M8JWKKtndsvrsZWPqr9YuUq9a00h81okmcbKFZ5faUhxzxfpfT k9sDb35RWpUezO7+J6D4/Ia5FgL88653x5u5eZo27HXyrVN0yyLeyBSVFM4yOHL5VqD+ 827uABDjvtvY79GZbg3FnRUKypcBV/EgqhZWAmXdCgP/EVJrxeamd1v7dO5I2HdFBWdN h/Mw== From: David Abdurachmanov To: libc-alpha@sourceware.org Cc: David Abdurachmanov , jimw@sifive.com, palmer@sifive.com, dj@delorie.com Subject: [PATCH] riscv: remove DL_RO_DYN_SECTION Date: Tue, 9 Apr 2019 13:25:29 +0200 Message-Id: <20190409112529.13930-1-david.abdurachmanov@gmail.com> MIME-Version: 1.0 While working on enabling D front-end (GDC) in GCC we noticed that druntime was segfaulting if it is linked dynamically. This was tracked to DL_RO_DYN_SECTION. DL_RO_DYN_SECTION lines seem to be copied from MIPS file (which is the only user of it), but the comment doesn't apply to RISC-V. There is no such requirement in RISC-V ABI. * sysdeps/riscv/ldsodefs.h: Remove DL_RO_DYN_SECTION as it is not required by RISC-V ABI. Signed-off-by: David Abdurachmanov Cc: jimw@sifive.com Cc: palmer@sifive.com Cc: dj@delorie.com --- sysdeps/riscv/ldsodefs.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sysdeps/riscv/ldsodefs.h b/sysdeps/riscv/ldsodefs.h index f46cf4158e..5ec607e867 100644 --- a/sysdeps/riscv/ldsodefs.h +++ b/sysdeps/riscv/ldsodefs.h @@ -38,10 +38,6 @@ struct La_riscv_retval; struct La_riscv_retval *, \ const char *); -/* The RISC-V ABI specifies that the dynamic section has to be read-only. */ - -#define DL_RO_DYN_SECTION 1 - #include_next #endif