about summary refs log tree commit diff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-01-24 13:06:05 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-01-24 13:06:05 +0100
commitfeb6d6b394bd0ebd74d3f4370394dfb94b1f011a (patch)
tree74217da91017677610cf7e0a4d141e15c24be3a5 /elf/dl-open.c
parentf3bef6a748097d02d196df247f7b292c7b83744c (diff)
downloadglibc-feb6d6b394bd0ebd74d3f4370394dfb94b1f011a.tar.gz
glibc-feb6d6b394bd0ebd74d3f4370394dfb94b1f011a.tar.xz
glibc-feb6d6b394bd0ebd74d3f4370394dfb94b1f011a.zip
ld.so: Defer applying RELRO protection
This is a prerequisite of a future change which applies additional
cross-object relocations after _dl_relocate_object has been called.
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index cec54db413..d238fb2cc5 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -552,6 +552,8 @@ TLS generation counter wrapped!  Please report this."));
 	}
     }
 
+  _dl_relocate_apply_relro (new);
+
   /* Notify the debugger all new objects have been relocated.  */
   if (relocation_in_progress)
     LIBC_PROBE (reloc_complete, 3, args->nsid, r, new);