aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
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 /sysdeps
parentf3bef6a748097d02d196df247f7b292c7b83744c (diff)
downloadglibc-feb6d6b394bd0ebd74d3f4370394dfb94b1f011a.zip
glibc-feb6d6b394bd0ebd74d3f4370394dfb94b1f011a.tar.gz
glibc-feb6d6b394bd0ebd74d3f4370394dfb94b1f011a.tar.bz2
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 'sysdeps')
-rw-r--r--sysdeps/generic/ldsodefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index f26a8b2..469f33e 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -863,6 +863,12 @@ extern void _dl_relocate_object (struct link_map *map,
int reloc_mode, int consider_profiling)
attribute_hidden;
+/* Apply RELRO protection for all objects on the search path of NEW.
+ This is the final step of relocation processing for freshly loaded
+ objects. */
+void _dl_relocate_apply_relro (struct link_map *new)
+ internal_function attribute_hidden;
+
/* Protect PT_GNU_RELRO area. */
extern void _dl_protect_relro (struct link_map *map)
internal_function attribute_hidden;