public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Andreas Schwab <schwab@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] riscv: restore ABI compatibility (bug 24484)
Date: Thu, 04 Jul 2019 12:56:00 -0000	[thread overview]
Message-ID: <20190704125650.28067.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2019-07-04 12:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190704125650.28067.qmail@sourceware.org \
    --to=schwab@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).