diff options
author | johannst <johannst@users.noreply.github.com> | 2024-02-15 23:29:57 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-02-15 23:29:57 +0000 |
commit | bac8a5d2822835cf47175d1162030653fadd5c09 (patch) | |
tree | 28f312a114cf95ac799daac2a2caec4b8612d84d /development/ld.so.html | |
parent | bfc5ce4bc01e5eb28969eefcc01ecfefa2601fdf (diff) | |
download | notes-bac8a5d2822835cf47175d1162030653fadd5c09.tar.gz notes-bac8a5d2822835cf47175d1162030653fadd5c09.zip |
deploy: 4485708c972815bbb6df7f5a228683aa855d553d
Diffstat (limited to 'development/ld.so.html')
-rw-r--r-- | development/ld.so.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/development/ld.so.html b/development/ld.so.html index 952b13e..253cec4 100644 --- a/development/ld.so.html +++ b/development/ld.so.html @@ -194,10 +194,10 @@ Therefore the following is a code smell:</p> <pre><code class="language-c">// at startup LD_LIBRARY_PATH=/moose // Assume /foo/libbar.so -setenv("LD_LIBRARY_PATH", "/foo", true /* overwrite */); +setenv("LD_LIBRARY_PATH", "/foo", true /* overwrite */); // Will look in /moose and NOT in /foo. -dlopen("libbar.so", RTLD_LAZY); +dlopen("libbar.so", RTLD_LAZY); </code></pre> <h2 id="ld_preload-initialization-order-and-link-map"><a class="header" href="#ld_preload-initialization-order-and-link-map">LD_PRELOAD: Initialization Order and Link Map</a></h2> <p>Libraries specified in <code>LD_PRELOAD</code> are loaded from <code>left-to-right</code> but |