This patch enables pic codegen for arm-linux.
Lauro
Index: gcc/config/arm/linux-elf.h =================================================================== --- gcc/config/arm/linux-elf.h (revision 336) +++ gcc/config/arm/linux-elf.h (working copy) @@ -149,3 +149,17 @@ #ifdef HAVE_LD_AS_NEEDED #define USE_LD_AS_NEEDED 1 #endif + +/* APPLE LOCAL begin LLVM */ +#ifdef ENABLE_LLVM + +/* PIC codegen for ARM-Linux-ELF target */ +#define LLVM_SET_TARGET_OPTIONS(argvec) \ + if (flag_pic) \ + argvec.push_back ("--relocation-model=pic"); \ + else \ + argvec.push_back ("--relocation-model=static"); + +/* APPLE LOCAL end LLVM */ + +#endif
_______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits