version 1.39, 2017/03/23 21:07:39 |
version 1.40, 2017/03/25 05:42:27 |
|
|
in the program might be needed by the dynamically loaded module, |
in the program might be needed by the dynamically loaded module, |
for example, if a program intends to make run-time decisions to |
for example, if a program intends to make run-time decisions to |
dynamically load modules it was never linked with. Note, when |
dynamically load modules it was never linked with. Note, when |
running <a href="//netbsd.gw.com/cgi-bin/man-cgi?cc+1.i386+NetBSD-7.1">cc(1)</a> instead of <a href="//netbsd.gw.com/cgi-bin/man-cgi?ld+1.i386+NetBSD-7.1">ld(1)</a> this will be specified |
running <a href="http://netbsd.gw.com/cgi-bin/man-cgi?cc+1.i386+NetBSD-7.1">cc(1)</a> instead of <a href="http://netbsd.gw.com/cgi-bin/man-cgi?ld+1.i386+NetBSD-7.1">ld(1)</a> this will be specified |
as <span class="bold"><strong>-Wl,--export-dynamic</strong></span>.</p> |
as <span class="bold"><strong>-Wl,--export-dynamic</strong></span>.</p> |
|
|
<h4 class="title"> |
<h4 class="title"> |
|
|
</h4> |
</h4> |
|
|
<p>An ELF program needs to know the <span class="emphasis"><em>directory</em></span> |
<p>An ELF program needs to know the <span class="emphasis"><em>directory</em></span> |
and the <span class="emphasis"><em>filename</em></span> required to <a href="//netbsd.gw.com/cgi-bin/man-cgi?mmap+2.i386+NetBSD-7.1">mmap(2)</a> |
and the <span class="emphasis"><em>filename</em></span> required to <a href="http://netbsd.gw.com/cgi-bin/man-cgi?mmap+2.i386+NetBSD-7.1">mmap(2)</a> |
its shared libraries. Encoded within the file name is version |
its shared libraries. Encoded within the file name is version |
information. There are one set of mechanisms for the directories |
information. There are one set of mechanisms for the directories |
and a different mechanism for the file names.</p> |
and a different mechanism for the file names.</p> |
|
|
<p>The primary directory locating mechanism is the ``rpath'' |
<p>The primary directory locating mechanism is the ``rpath'' |
search list contained within the executable image. This search |
search list contained within the executable image. This search |
list is set with the <span class="bold"><strong>-R</strong></span> |
list is set with the <span class="bold"><strong>-R</strong></span> |
directive to <a href="//netbsd.gw.com/cgi-bin/man-cgi?ld+1.i386+NetBSD-7.1">ld(1)</a>. The POSIX syntax for passing |
directive to <a href="http://netbsd.gw.com/cgi-bin/man-cgi?ld+1.i386+NetBSD-7.1">ld(1)</a>. The POSIX syntax for passing |
<a href="//netbsd.gw.com/cgi-bin/man-cgi?ld+1.i386+NetBSD-7.1">ld(1)</a> options through the compiler front end is:</p> |
<a href="http://netbsd.gw.com/cgi-bin/man-cgi?ld+1.i386+NetBSD-7.1">ld(1)</a> options through the compiler front end is:</p> |
|
|
<p> <span class="bold"><strong>-Wl,</strong></span> |
<p> <span class="bold"><strong>-Wl,</strong></span> |
<span class="emphasis"><em>option,option,...</em></span></p> |
<span class="emphasis"><em>option,option,...</em></span></p> |
Line 402 You can disable some of the <code class= |
|
Line 402 You can disable some of the <code class= |
|
cp -p /usr/lib/*.so* /emul/aout/usr/lib |
cp -p /usr/lib/*.so* /emul/aout/usr/lib |
cp -p /usr/X11R6/lib/*.so* /emul/aout/usr/X11R6/lib</strong></span></pre> |
cp -p /usr/X11R6/lib/*.so* /emul/aout/usr/X11R6/lib</strong></span></pre> |
</li> |
</li> |
<li class="listitem">update <a href="//netbsd.gw.com/cgi-bin/man-cgi?config+8.i386+NetBSD-7.1">config(8)</a> |
<li class="listitem">update <a href="http://netbsd.gw.com/cgi-bin/man-cgi?config+8.i386+NetBSD-7.1">config(8)</a> |
<pre class="programlisting"><span class="bold"><strong>cd /usr/src/usr.sbin/config && make && make install</strong></span></pre> |
<pre class="programlisting"><span class="bold"><strong>cd /usr/src/usr.sbin/config && make && make install</strong></span></pre> |
</li> |
</li> |
<li class="listitem"> |
<li class="listitem"> |