mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
9acc85a62e
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.
14 lines
166 B
ArmAsm
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
|