mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
7345d05aaf
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.
4 lines
113 B
Bash
4 lines
113 B
Bash
source_sh ${srcdir}/emulparams/elf32lriscv-defs.sh
|
|
ELFSIZE=64
|
|
SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 16 ? 16 : 0"
|