]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld: pass argc/argv/env to dso inits.
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 7 Sep 2020 21:32:27 +0000 (21:32 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 7 Sep 2020 21:32:27 +0000 (21:32 +0000)
commit1db23efb83cbdbf7ab49f496843d7a26228cc479
tree5a037ad36c86b28338554406d8478486a889d5ed
parent3d4217bc0f7e2448abca3bb86ebcc79a7e36b61f
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