Read-only data in ELF libraries may be remapped writable at runtime (upcoming NDSS'17 paper)

Message ID 20161231080312.GH29355@bubble.grove.modra.org
State Not applicable
Headers

Commit Message

Alan Modra Dec. 31, 2016, 8:03 a.m. UTC
  On Fri, Dec 30, 2016 at 03:11:01PM +0000, Joseph Myers wrote:
> One of these changes appears to have broken building glibc for MIPS64 (n32 
> ABI; others untested) with binutils master (not tested 2.28).  Building 

Thanks for the notification.  A silly omission on my part.

	* elfn32-mips.c (elf_backend_want_dynrelro): Define.
  

Patch

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.  */