Restore dlsym-failure as this question appears to still be an FAQ.

Requested by:	kib
Approved by:	bcr (mentor, implicit)
This commit is contained in:
Eitan Adler 2013-02-08 13:20:51 +00:00
parent f37a4d0c58
commit e432124a16
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40914

View file

@ -8324,6 +8324,27 @@ panic: page fault</programlisting>
</answer>
</qandaentry>
<qandaentry>
<question id="dlsym-failure">
<para>Why has <function>dlsym()</function> stopped working for
ELF executables?</para>
</question>
<answer>
<para>The ELF toolchain does not, by default, make the symbols
defined in an executable visible to the dynamic linker.
Consequently <function>dlsym()</function> searches on
handles obtained from calls to <function>dlopen(NULL,
flags)</function> will fail to find such symbols.</para>
<para>If you want to search, using
<function>dlsym()</function>, for symbols present in the
main executable of a process, you need to link the
executable using the <option>--export-dynamic</option>
option to the ELF linker (&man.ld.1;).</para>
</answer>
</qandaentry>
<qandaentry>
<question id="change-kernel-address-space">
<para>How can I increase or reduce the kernel address space on