mailing list of musl libc
 help / color / mirror / code / Atom feed
* --preload and --library-path ?
@ 2015-04-01 14:59 John Mudd
  2015-04-01 15:33 ` Szabolcs Nagy
  2015-04-02 12:16 ` u-wsnj
  0 siblings, 2 replies; 3+ messages in thread
From: John Mudd @ 2015-04-01 14:59 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]

Where can I get more info on these options?


1.1.1 release notes

new features:
- new options --preload and --library-path to dynamic linker

John

[-- Attachment #2: Type: text/html, Size: 277 bytes --]

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

* Re: --preload and --library-path ?
  2015-04-01 14:59 --preload and --library-path ? John Mudd
@ 2015-04-01 15:33 ` Szabolcs Nagy
  2015-04-02 12:16 ` u-wsnj
  1 sibling, 0 replies; 3+ messages in thread
From: Szabolcs Nagy @ 2015-04-01 15:33 UTC (permalink / raw)
  To: musl

* John Mudd <johnbmudd@gmail.com> [2015-04-01 10:59:22 -0400]:
> Where can I get more info on these options?
> 
> 
> 1.1.1 release notes
> 
> new features:
> - new options --preload and --library-path to dynamic linker
> 

http://git.musl-libc.org/cgit/musl/commit/?id=de45164effdddf500756e10e8c6f56b79301d82b

they do the same as the env vars, just higher precedence
(see ld.so manual for LD_PRELOAD and LD_LIBRARY_PATH)


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

* Re: --preload and --library-path ?
  2015-04-01 14:59 --preload and --library-path ? John Mudd
  2015-04-01 15:33 ` Szabolcs Nagy
@ 2015-04-02 12:16 ` u-wsnj
  1 sibling, 0 replies; 3+ messages in thread
From: u-wsnj @ 2015-04-02 12:16 UTC (permalink / raw)
  To: musl

On Wed, Apr 01, 2015 at 10:59:22AM -0400, John Mudd wrote:
> Where can I get more info on these options?
> 
> 1.1.1 release notes
> 
> new features:
> - new options --preload and --library-path to dynamic linker

These are a straightforward and proper (safe) equivalent of the
traditional poorly designed / unsafe LD_PRELOAD and LD_LIBRARY_PATH
environment variables. The options take the arguments with values
corresponding to the ones would-be-put into the variables.
The first non-option argument to the dynamic loader is the binary to be
run, the rest is passed as arguments to the started program.

In contrast to the variables these options are not automatically inherited
by possible child processes and exhibit the correct and safe behaviour.
The variables are atill respected if the corresponding option is not present.

Rune



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

end of thread, other threads:[~2015-04-02 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01 14:59 --preload and --library-path ? John Mudd
2015-04-01 15:33 ` Szabolcs Nagy
2015-04-02 12:16 ` u-wsnj

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).