Revision
2804
Author
lsansonetti@apple.com
Date
2009-10-14 17:58:21 -0700 (Wed, 14 Oct 2009)

Log Message

build AOT bitcode as fully relocatable

Modified Paths

Diff

Modified: MacRuby/trunk/bin/rubyc (2803 => 2804)


--- MacRuby/trunk/bin/rubyc	2009-10-15 00:51:44 UTC (rev 2803)
+++ MacRuby/trunk/bin/rubyc	2009-10-15 00:58:21 UTC (rev 2804)
@@ -111,7 +111,7 @@
 
       # Compile the bitcode as assembly.
       asm = gen_tmpfile(base + arch, 's')
-      execute("#{@llc} -f #{bc} -o=#{asm} -march=#{llc_arch(arch)} -enable-eh")
+      execute("#{@llc} -f #{bc} -o=#{asm} -march=#{llc_arch(arch)} -relocation-model=pic -enable-eh")
 
       # Compile the assembly.
       tmp_obj = gen_tmpfile(base + arch, 'o')