Use dynrelro for symbols in relro sections too
authorAlan Modra <amodra@gmail.com>
Wed, 28 Dec 2016 06:34:15 +0000 (17:04 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Dec 2016 11:40:38 +0000 (22:10 +1030)
commit9acc85a62eb76c270724bba15c889d2d05567b6a
tree2f98cec208e57b60f245c4eac6bb4b71274d73e8
parentb733bcb7f58c42e0e0d94a3f266a4193030e5f3a
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.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/pr20995-2so.r [new file with mode: 0644]
ld/testsuite/ld-elf/pr20995c.s [new file with mode: 0644]