binutils-gdb/ld/testsuite/ld-loongarch-elf/data-got.s
mengqinggang 2bf280a827 LoongArch: ld: Move .got .got.plt before .data and protect .got with relro
Move .got .got.plt before .data so .got can be protected with -zrelro.
And the first two entries of .got.plt (_dl_runtime_resolve and link map)
are placed within the relro region.
2024-04-09 14:31:04 +08:00

6 lines
57 B
ArmAsm

.text
b foo
.section .got
.space 0x2a8, 4
.data
.zero 24