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: 32218 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== Return-Path: 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