[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/31133] [riscv64] -z now breaks glibc testsuite
From: |
aurelien at aurel32 dot net |
Subject: |
[Bug ld/31133] [riscv64] -z now breaks glibc testsuite |
Date: |
Tue, 12 Dec 2023 06:15:42 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31133
Aurelien Jarno <aurelien at aurel32 dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aurelien at aurel32 dot net,
| |schwab@linux-m68k.org
--- Comment #2 from Aurelien Jarno <aurelien at aurel32 dot net> ---
A bisect pointed me to the following commit:
7345d05aafde53a48d5a587a6d9c1778db78e0f3 is the first bad commit
commit 7345d05aafde53a48d5a587a6d9c1778db78e0f3
Author: Andreas Schwab <schwab@suse.de>
Date: Thu Sep 21 16:49:41 2023 +0200
RISC-V: Protect .got with relro
Move .got before .data so that it can be protected with -zrelro. Also
separate .got.plt from .got if -znow is not in effect; the first two words
of .got.plt are placed within the relro region.
ld:
PR ld/30877
* emulparams/elf32lriscv-defs.sh (DATA_GOT, SEPARATE_GOTPLT):
Define.
* emulparams/elf64lriscv-defs.sh (SEPARATE_GOTPLT): Define.
* testsuite/ld-elf/binutils.exp (binutils_test): Remove riscv*-*-*
from relro_got expression.
ld/emulparams/elf32lriscv-defs.sh | 4 ++++
ld/emulparams/elf64lriscv-defs.sh | 1 +
ld/testsuite/ld-elf/binutils.exp | 1 -
3 files changed, 5 insertions(+), 1 deletion(-)
--
You are receiving this mail because:
You are on the CC list for the bug.