Hello All, On a Debian/AMD64 host I am surprised that there is apparently no way to generate position independent code in shared object (i.e. to output files which are easy dlopen-able without pain)? I probably missed something obvious, but what? I want to compile LLVM assembly source code -suitably generated- into .so as directly as possible... Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***
Chris Lattner wrote:> On Mon, 22 Oct 2007, Basile STARYNKEVITCH wrote: >> On a Debian/AMD64 host I am surprised that there is apparently no way to >> generate position independent code in shared object (i.e. to output >> files which are easy dlopen-able without pain)? >> >> I probably missed something obvious, but what? > > You're missing the fact that llvmc is highly experimental, and is not > really usable yet. Please use llvm-gcc directly, thanks!Yes, but I want to compile LLVM assembly language (to PIC shared object file on AMD64/Linux/Debian), not C. Is llvm-gcc still needed in that case? Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***
On Mon, 22 Oct 2007, Basile STARYNKEVITCH wrote:> On a Debian/AMD64 host I am surprised that there is apparently no way to > generate position independent code in shared object (i.e. to output > files which are easy dlopen-able without pain)? > > I probably missed something obvious, but what?You're missing the fact that llvmc is highly experimental, and is not really usable yet. Please use llvm-gcc directly, thanks! -Chris -- http://nondot.org/sabre/ http://llvm.org/
Maybe Matching Threads
- [LLVMdev] Q: missing -fPIC in llvmc?
- [LLVMdev] Q: missing -fPIC in llvmc?
- [LLVMdev] generating a shared object from a single *.ll (LLVM) source?
- [LLVMdev] open source multithreaded garbage collector suitable for LLVM applications?
- [LLVMdev] 2.0 Release Process