mailing list of musl libc
 help / color / mirror / code / Atom feed
* Retention of LD_LIBRARY_PATH
@ 2014-08-31 10:25 Alexander Monakov
  2014-08-31 12:41 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Monakov @ 2014-08-31 10:25 UTC (permalink / raw)
  To: musl

(related to setproctitle discussion on IRC)

The dynamic loader in musl retains a pointer to LD_LIBRARY_PATH from the
initial environment, which is exposed to the application via 'char **environ'.
Changes to environ may cause subsequent calls to dlopen to use different
search paths, but modifications via setenv and putenv do not have such effect.

dlopen(3) in Linux man pages mentions specifically that the value of
LD_LIBRARY_PATH from program start up is used.  Glibc stores a duplicate of
the initial value, and modifications to the environment do not affect search
paths for dlopen.

Alexander


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-31 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-31 10:25 Retention of LD_LIBRARY_PATH Alexander Monakov
2014-08-31 12:41 ` Rich Felker
2014-08-31 13:14   ` Alexander Monakov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).