Andreas Schwab 7345d05aaf 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.
2023-09-25 12:36:58 +02:00
..
2023-09-25 10:55:51 +03:00
2023-08-02 12:06:23 +01:00
2023-08-16 14:22:54 +01:00
2023-09-25 12:36:58 +02:00
2023-01-02 14:03:22 +10:30
2023-08-16 14:22:54 +01:00
2023-08-16 14:22:54 +01:00
2023-02-21 16:21:25 +10:30
2023-08-02 12:06:23 +01:00
2023-08-16 14:22:54 +01:00