Fix PR ld/20995 for cris-linux
authorHans-Peter Nilsson <hp@bitrange.com>
Fri, 27 Jan 2017 00:50:06 +0000 (01:50 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 27 Jan 2017 00:50:06 +0000 (01:50 +0100)
commit1fbd05e16ebde966e44c1108dc77871f3fba329a
tree5261f0c088dd0097f9f61c6f3ce9fc698be00e55
parentb51e1e94d66af7f63cd9052a16881087da111ef1
Fix PR ld/20995 for cris-linux

PR ld/20995
* elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
(elf_cris_adjust_dynamic_symbol): Place variables copied into the
executable from read-only sections into sdynrelro.
(elf_cris_finish_dynamic_symbol): Select sreldynrelro for
dynamic relocs in sdynrelro.
(elf_backend_want_dynrelro): Define.
bfd/ChangeLog
bfd/elf32-cris.c