[LLVMdev] Dynamic loading on x86-Linux

Casey Carter ccarter at cs.uiuc.edu
Fri Sep 13 12:13:01 PDT 2002


ISSUE: By default, symbols are not exported from an executable unless 
they are linked against a DSO.  What this means is that dlopen()ed DSOs 
cannot link to symbols in the main executable unless that executable was 
linked with --export-dynamic.

ACTION: Ensure that opt is linked with "-Wl,--export-dynamic" on the G++ 
command line by defining "ExportSymbols" in Makefile.common.  For 
Solaris this definition should be commented out.

PATCH: top-level, patch -p0.

-- 
Casey Carter
Casey at Carter.net
ccarter at uiuc.edu
AIM: cartec69

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20020913/d2c36cbf/attachment.ksh>


More information about the llvm-dev mailing list