riscv: remove DL_RO_DYN_SECTION

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.
This commit is contained in:
David Abdurachmanov 2019-04-09 13:25:29 +02:00 committed by Palmer Dabbelt
parent b5ffdc48c2
commit deacca0054
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
2 changed files with 5 additions and 4 deletions

View file

@ -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.

View 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