]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld: pass argc/argv/env to dso inits.
authorkib <kib@FreeBSD.org>
Mon, 7 Sep 2020 21:32:27 +0000 (21:32 +0000)
committerkib <kib@FreeBSD.org>
Mon, 7 Sep 2020 21:32:27 +0000 (21:32 +0000)
commit7f15ee641338f549d1ad4fcd2449041a863b6d7a
tree5a037ad36c86b28338554406d8478486a889d5ed
parentdf30047f3fa8383ff90d5191ccb1fb46b8ea930a
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@gmail.com>
PR: 249162
Reviewed by: dim, emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D26351
libexec/rtld-elf/rtld.c