svn commit: r365432 - head/libexec/rtld-elf
Konstantin Belousov
kib at FreeBSD.org
Mon Sep 7 21:32:28 UTC 2020
Author: kib
Date: Mon Sep 7 21:32:27 2020
New Revision: 365432
URL: https://svnweb.freebsd.org/changeset/base/365432
Log:
rtld: pass argc/argv/env to dso inits.
This is consistent with how array inits are called, and also makes us
more compatible with glibc environment.
Requested by: Alex S <iwtcex at gmail.com>
PR: 249162
Reviewed by: dim, emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D26351
Modified:
head/libexec/rtld-elf/rtld.c
Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c Mon Sep 7 20:25:54 2020 (r365431)
+++ head/libexec/rtld-elf/rtld.c Mon Sep 7 21:32:27 2020 (r365432)
@@ -2844,7 +2844,7 @@ objlist_call_init(Objlist *list, RtldLockState *lockst
(void *)elm->obj->init);
LD_UTRACE(UTRACE_INIT_CALL, elm->obj, (void *)elm->obj->init,
0, 0, elm->obj->path);
- call_initfini_pointer(elm->obj, elm->obj->init);
+ call_init_pointer(elm->obj, elm->obj->init);
}
init_addr = (Elf_Addr *)elm->obj->init_array;
if (init_addr != NULL) {
More information about the svn-src-head
mailing list