svn commit: r362347 - head/libexec/rtld-elf

Konstantin Belousov kib at FreeBSD.org
Thu Jun 18 23:07:59 UTC 2020


Author: kib
Date: Thu Jun 18 23:07:58 2020
New Revision: 362347
URL: https://svnweb.freebsd.org/changeset/base/362347

Log:
  rtld: Apply relro to itself.
  
  Reviewed by:	emaste
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week
  Differential revision:	https://reviews.freebsd.org/D25319

Modified:
  head/libexec/rtld-elf/rtld.c

Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c	Thu Jun 18 23:06:05 2020	(r362346)
+++ head/libexec/rtld-elf/rtld.c	Thu Jun 18 23:07:58 2020	(r362347)
@@ -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;


More information about the svn-src-all mailing list