rtld: Apply relro to itself.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25319
This commit is contained in:
parent
e0b322ae78
commit
7e400f1ade
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user