[LLVMdev] llvm-gcc working on linux/amd64

Chris Lattner sabre at nondot.org
Wed Sep 13 16:49:35 PDT 2006


On Wed, 13 Sep 2006, [UTF-8] Rafael Esp?ndola wrote:
> With the patchs I send earlier, it is possible to compile llvm-gcc in
> a amd64 with
>
> ../trunk/configure --enable-llvm=/home/rafael/dev/llvm/build/
> --enable-checking --prefix=/home/rafael/dev/llvm/gcc/inst/
> --enable-languages=c --disable-threads --disable-shared
> --disable-multilib --program-prefix=llvm-

Great, I'll add this to the README.LLVM file.

> Enabling shared libraries causes the build to fail while linking
> libgcc. Apparently llvm-gcc generated code uses text relocations.

Right.  The X86-64 backend (like the X86-32 backend) only has PIC support 
for darwin so far :(.  In x86-32, you can use non-pic codegen for shared 
libraries, you just get worse performance (COW .text pages).

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list