Mark Kettenis <mark.kette...@xs4all.nl> wrote: > > From: "Theo de Raadt" <dera...@openbsd.org> > > Date: Wed, 08 Jul 2020 09:42:41 -0600 > > > > I think we need something like this. > > > > Documenting it will be a challenge. > > > > I really don't like the name as is too generic, when the control is only > > for a narrow set of "current time" system calls. > > I'm not sure we should be using getenv() in this early initialization > function though.
Ah, you worry about the static "#ifndef PIC / early_static_init" versus "PIC ld.so" environ setup, and this very early getenv() call might not be looking at the environ global. Ted, did you check static and dynamic binaries?