svn commit: r340226 - stable/12/libexec/rtld-elf
Konstantin Belousov
kib at FreeBSD.org
Wed Nov 7 18:07:30 UTC 2018
Author: kib
Date: Wed Nov 7 18:07:29 2018
New Revision: 340226
URL: https://svnweb.freebsd.org/changeset/base/340226
Log:
MFC r339896:
Initialize ifunc calling machinery earlier.
Approved by: re (gjb)
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 Wed Nov 7 18:04:19 2018 (r340225)
+++ stable/12/libexec/rtld-elf/rtld.c Wed Nov 7 18:07:29 2018 (r340226)
@@ -688,6 +688,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
@@ -709,7 +711,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-stable
mailing list