diff --git a/ChangeLog b/ChangeLog index fe5fd79eaca..fbe5cd8648c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-07-04 Andreas Schwab + + [BZ #24484] + * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define. + 2019-07-04 Szabolcs Nagy * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests. diff --git a/sysdeps/riscv/ldsodefs.h b/sysdeps/riscv/ldsodefs.h index 5ec607e8675..d7531b707a1 100644 --- a/sysdeps/riscv/ldsodefs.h +++ b/sysdeps/riscv/ldsodefs.h @@ -38,6 +38,11 @@ struct La_riscv_retval; struct La_riscv_retval *, \ const char *); +/* Although the RISC-V ABI does not specify that the dynamic section has + to be read-only, it needs to be kept for ABI compatibility. */ + +#define DL_RO_DYN_SECTION 1 + #include_next #endif