diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-06-18 23:07:58 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-06-18 23:07:58 +0000 |
commit | 7e400f1ade584ef31b222180a1182a0380bfd6c7 (patch) | |
tree | c32fc214201bf62c831fc968bd0b2816480c17f5 /libexec/rtld-elf | |
parent | e0b322ae78f270fea23d361eab5387a9a3d65213 (diff) | |
download | src-7e400f1ade584ef31b222180a1182a0380bfd6c7.tar.gz src-7e400f1ade584ef31b222180a1182a0380bfd6c7.zip |
rtld: Apply relro to itself.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D25319
Notes
Notes:
svn path=/head/; revision=362347
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index f999bf2bd07f..0ab26acd1fa6 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -2280,6 +2280,7 @@ init_rtld(caddr_t mapbase, Elf_Auxinfo **aux_info) obj_rtld.path = xstrdup(ld_path_rtld); parse_rtld_phdr(&obj_rtld); + obj_enforce_relro(&obj_rtld); r_debug.r_brk = r_debug_state; r_debug.r_state = RT_CONSISTENT; |