https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285401

Mark Millard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #40 from Mark Millard <[email protected]> ---
environ is special. The below is intended as general
information in case this gets into similar issues to
past attempts to change how enivron works.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268518#c2

by Konstantin Belousov ( [email protected] ) says, in part:

QUOTE
POSIX does not have the concept of shared libraries.  It is only vaguely
mentioned in the description of dl* functions, for instance

void *dlopen(const char *file, int mode);
25290 DESCRIPTION
25291 The dlopen( ) function shall make the symbols (function identifiers and
data object identifiers) in
25292 the executable object file specified by file available to the calling
program.
25293 The class of executable object files eligible for this operation and the
manner of their
25294 construction are implementation-defined, though typically such files are
shared libraries or
25295 programs.

In FreeBSD, environ is exported by the main binary, moving it to e.g. libc is
impossible without breaking
ABI.  Practically it would end in the main binary anyway, with the copy
relocation from libc.
END QUOTE

(If this ends up being of no use, sorry in advance.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to