]> sourceware.org Git - glibc.git/commitdiff
riscv: remove DL_RO_DYN_SECTION
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Tue, 9 Apr 2019 11:25:29 +0000 (13:25 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 25 Apr 2019 17:53:08 +0000 (10:53 -0700)
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.

        [BZ#24484]
* sysdeps/riscv/ldsodefs.h: Remove DL_RO_DYN_SECTION as it is not
required by RISC-V ABI.

ChangeLog
sysdeps/riscv/ldsodefs.h

index d735e1c43713db652c7c4fcc92f4e1bcd9bfa81b..100e8407fca13d98bc1d64ac49626db3ab3a540c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
+
+       [BZ#24484]
+       * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
+
 2019-04-25  Florian Weimer  <fweimer@redhat.com>
 
        benchtests: Enable BIND_NOW if configured with --enable-bind-now.
index f46cf4158e87e6c6e499e580f80655bf2236b24f..5ec607e867533fd290d01e6a7c236b60237f15b9 100644 (file)
@@ -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 <ldsodefs.h>
 
 #endif
This page took 0.068947 seconds and 5 git commands to generate.