[llvm-commits] [127254] Lauro's patch to enable PIC codegen for arm-linux.
echeng at apple.com
echeng at apple.com
Mon May 14 18:11:40 PDT 2007
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
More information about the llvm-commits
mailing list