svn commit: r362604 - stable/12/libexec/rtld-elf
Konstantin Belousov
kib at FreeBSD.org
Thu Jun 25 05:20:01 UTC 2020
Author: kib
Date: Thu Jun 25 05:20:00 2020
New Revision: 362604
URL: https://svnweb.freebsd.org/changeset/base/362604
Log:
MFC r362347:
rtld: Apply relro to itself.
Modified:
stable/12/libexec/rtld-elf/rtld.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/libexec/rtld-elf/rtld.c
==============================================================================
--- stable/12/libexec/rtld-elf/rtld.c Thu Jun 25 05:17:36 2020 (r362603)
+++ stable/12/libexec/rtld-elf/rtld.c Thu Jun 25 05:20:00 2020 (r362604)
@@ -2233,6 +2233,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;
More information about the svn-src-all
mailing list