[LLVMdev] Creating a shared library from a module

Frank Winter fwinter at jlab.org
Wed Dec 11 08:46:55 PST 2013


I'd like to create a shared library out of a module in memory. Thus, I 
have a working module and would like to produce a library similar to what

$(CC) $(CFLAGS) -shared -fPIC

would produce, but I'd like to use the LLVM library (not the tools!). 
The documentation is very scarce about this.

Where in the code (probably clang?!) is a good starting point to look? 
'Shared' and 'position-independent' would be important.

Thanks,
Frank




More information about the llvm-dev mailing list