Revision: 127254 Author: echeng Date: 2007-05-14 18:11:39 -0700 (Mon, 14 May 2007)
Log Message: ----------- Lauro's patch to enable PIC codegen for arm-linux. Modified Paths: -------------- apple-local/branches/llvm/gcc/config/arm/linux-elf.h Modified: apple-local/branches/llvm/gcc/config/arm/linux-elf.h =================================================================== --- apple-local/branches/llvm/gcc/config/arm/linux-elf.h 2007-05-14 22:03:51 UTC (rev 127253) +++ apple-local/branches/llvm/gcc/config/arm/linux-elf.h 2007-05-15 01:11:39 UTC (rev 127254) @@ -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