svn commit: r340233 - stable/11/libexec/rtld-elf

Konstantin Belousov kib at FreeBSD.org
Wed Nov 7 18:33:10 UTC 2018


Author: kib
Date: Wed Nov  7 18:33:09 2018
New Revision: 340233
URL: https://svnweb.freebsd.org/changeset/base/340233

Log:
  MFC r339896:
  Initialize ifunc calling machinery earlier.

Modified:
  stable/11/libexec/rtld-elf/rtld.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/libexec/rtld-elf/rtld.c
==============================================================================
--- stable/11/libexec/rtld-elf/rtld.c	Wed Nov  7 18:32:10 2018	(r340232)
+++ stable/11/libexec/rtld-elf/rtld.c	Wed Nov  7 18:33:09 2018	(r340233)
@@ -710,6 +710,8 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entr
        exit (0);
     }
 
+    ifunc_init(aux);
+
     /*
      * Setup TLS for main thread.  This must be done after the
      * relocations are processed, since tls initialization section
@@ -731,7 +733,6 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entr
     r_debug_state(NULL, &obj_main->linkmap); /* say hello to gdb! */
 
     map_stacks_exec(NULL);
-    ifunc_init(aux);
 
     dbg("resolving ifuncs");
     if (resolve_objects_ifunc(obj_main,


More information about the svn-src-all mailing list