To search, using
<function>dlsym()
</function>, for symbols present in the main executable of a process, link the executable using the
<option>--export-dynamic
</option> option to the ELF linker (
<citerefentry><refentrytitle>ld
</refentrytitle><manvolnum>1
</manvolnum></citerefentry>).