]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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 12:14:03 +0000 (22:44 +1030)
commitb9f351d14e9862d3521c24820671e6531d604364
treecfefdd2b059fef8e56517c1615e5dab0f1d6ad20
parenta08db921c967484bbd4fb66ca2648548866cba59
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]