binutils-gdb/ld/testsuite/ld-elf/pr20995c.s
Alan Modra 9acc85a62e Use dynrelro for symbols in relro sections too
PR ld/20995
bfd/
	* elflink.c (elf_link_add_object_symbols): Mark relro sections
	in dynamic objects SEC_READONLY.
ld/
	* testsuite/ld-elf/pr20995c.s: New test file.
	* testsuite/ld-elf/pr20995-2so.r: Likewise.
	* testsuite/ld-elf/elf.exp: Run it.
2016-12-28 22:10:38 +10:30

14 lines
166 B
ArmAsm

.data
.type rw,%object
.globl rw
rw:
.dc.a 0
.size rw, . - rw
.section .data.rel.ro,"aw",%progbits
.type ro,%object
.globl ro
ro:
.dc.a 0
.size ro, . - ro