Skip to content

Commit

Permalink
riscv: restore ABI compatibility (bug 24484)
Browse files Browse the repository at this point in the history
The contents of the dynamic section are part of the ABI, thus
DL_RO_DYN_SECTION cannot be changed.
  • Loading branch information
andreas-schwab committed Jul 4, 2019
1 parent 2b8a3c8 commit 484b7af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2019-07-04 Andreas Schwab <schwab@suse.de>

[BZ #24484]
* sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.

2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>

* sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/riscv/ldsodefs.h
Expand Up @@ -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 <ldsodefs.h>

#endif

0 comments on commit 484b7af

Please sign in to comment.