From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28149 invoked by alias); 4 Jul 2019 12:56:51 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 28069 invoked by uid 9004); 4 Jul 2019 12:56:50 -0000 Date: Thu, 04 Jul 2019 12:56:00 -0000 Message-ID: <20190704125650.28067.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Andreas Schwab To: glibc-cvs@sourceware.org Subject: [glibc] riscv: restore ABI compatibility (bug 24484) X-Act-Checkin: glibc X-Git-Author: Andreas Schwab X-Git-Refname: refs/heads/master X-Git-Oldrev: 2b8a3c86e7606cf1b0a997dad8af2d45ae8989c3 X-Git-Newrev: 484b7af3ccb782ccb3491b541a68de9c5d6f063b X-SW-Source: 2019-q3/txt/msg00032.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=484b7af3ccb782ccb3491b541a68de9c5d6f063b commit 484b7af3ccb782ccb3491b541a68de9c5d6f063b Author: Andreas Schwab 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 + + [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 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 #endif