aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/rtld.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-02-13 10:40:14 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-02-13 10:40:14 +0000
commit9a701d643b211714aa31ee8677787b1d43c5de1b (patch)
tree257baa58aededeece1e72fe8b4d953c97419e874 /libexec/rtld-elf/rtld.h
parent14e7a616b1e89e0ba9a2cf906b5cd8ae3a22cbb4 (diff)
MFC r230784:
Add support for GNU RELRO.
Notes
svn path=/stable/9/; revision=231579
Diffstat (limited to 'libexec/rtld-elf/rtld.h')
-rw-r--r--libexec/rtld-elf/rtld.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h
index 4a752e42a285..041bf7c5c5b4 100644
--- a/libexec/rtld-elf/rtld.h
+++ b/libexec/rtld-elf/rtld.h
@@ -168,6 +168,9 @@ typedef struct Struct_Obj_Entry {
size_t tlsoffset; /* Offset of static TLS block for this module */
size_t tlsalign; /* Alignment of static TLS block */
+ caddr_t relro_page;
+ size_t relro_size;
+
/* Items from the dynamic section. */
Elf_Addr *pltgot; /* PLT or GOT, depending on architecture */
const Elf_Rel *rel; /* Relocation entries */