public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] riscv: restore ABI compatibility (bug 24484)
@ 2019-07-04 12:56 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2019-07-04 12:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=484b7af3ccb782ccb3491b541a68de9c5d6f063b

commit 484b7af3ccb782ccb3491b541a68de9c5d6f063b
Author: Andreas Schwab <schwab@suse.de>
Date:   Wed Jul 3 13:52:49 2019 +0200

    riscv: restore ABI compatibility (bug 24484)
    
    The contents of the dynamic section are part of the ABI, thus
    DL_RO_DYN_SECTION cannot be changed.

Diff:
---
 ChangeLog                | 5 +++++
 sysdeps/riscv/ldsodefs.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index fe5fd79..fbe5cd8 100644
--- a/ChangeLog
+++ b/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.
diff --git a/sysdeps/riscv/ldsodefs.h b/sysdeps/riscv/ldsodefs.h
index 5ec607e..d7531b7 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 <ldsodefs.h>
 
 #endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-04 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 12:56 [glibc] riscv: restore ABI compatibility (bug 24484) Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).