From: Alan Modra Date: Sat, 31 Dec 2016 07:55:35 +0000 (+1030) Subject: Create sdynrelro for elfn32 mips too X-Git-Tag: users/ARM/embedded-binutils-2_28-branch-2017q1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e02461472ed605c1709cd68d3179a31258cbeb94;p=thirdparty%2Fbinutils-gdb.git Create sdynrelro for elfn32 mips too * elfn32-mips.c (elf_backend_want_dynrelro): Define. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 08dbf614855..63d1c904c54 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-12-31 Alan Modra + + * elfn32-mips.c (elf_backend_want_dynrelro): Define. + 2016-12-29 Alan Modra * elflink.c (_bfd_elf_link_hash_copy_indirect): Only omit diff --git a/bfd/elfn32-mips.c b/bfd/elfn32-mips.c index c7ca646877e..ef09a148928 100644 --- a/bfd/elfn32-mips.c +++ b/bfd/elfn32-mips.c @@ -3687,6 +3687,7 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = { #define elf_backend_ecoff_debug_swap &mips_elf32_ecoff_debug_swap #define elf_backend_got_header_size (4 * MIPS_RESERVED_GOTNO) +#define elf_backend_want_dynrelro 1 /* MIPS n32 ELF can use a mixture of REL and RELA, but some Relocations work better/work only in RELA, so we default to this. */