This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/binutils-2_28-branch] Create sdynrelro for elfn32 mips too


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e02461472ed605c1709cd68d3179a31258cbeb94

commit e02461472ed605c1709cd68d3179a31258cbeb94
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Dec 31 18:25:35 2016 +1030

    Create sdynrelro for elfn32 mips too
    
    	* elfn32-mips.c (elf_backend_want_dynrelro): Define.

Diff:
---
 bfd/ChangeLog     | 4 ++++
 bfd/elfn32-mips.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 08dbf61..63d1c90 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2016-12-31  Alan Modra  <amodra@gmail.com>
+
+	* elfn32-mips.c (elf_backend_want_dynrelro): Define.
+
 2016-12-29  Alan Modra  <amodra@gmail.com>
 
 	* elflink.c (_bfd_elf_link_hash_copy_indirect): Only omit
diff --git a/bfd/elfn32-mips.c b/bfd/elfn32-mips.c
index c7ca646..ef09a14 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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]