Date: Fri, 8 Feb 2013 13:20:51 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40914 - head/en_US.ISO8859-1/books/faq Message-ID: <201302081320.r18DKpnW004006@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Fri Feb 8 13:20:51 2013 New Revision: 40914 URL: http://svnweb.freebsd.org/changeset/doc/40914 Log: Restore dlsym-failure as this question appears to still be an FAQ. Requested by: kib Approved by: bcr (mentor, implicit) Modified: head/en_US.ISO8859-1/books/faq/book.xml Modified: head/en_US.ISO8859-1/books/faq/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/faq/book.xml Fri Feb 8 10:23:03 2013 (r40913) +++ head/en_US.ISO8859-1/books/faq/book.xml Fri Feb 8 13:20:51 2013 (r40914) @@ -8325,6 +8325,27 @@ panic: page fault</programlisting> </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 i386?</para>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302081320.r18DKpnW004006>