Make this test a bit more interesting.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 6 Jul 2015 02:45:01 +0000 (02:45 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 6 Jul 2015 02:45:01 +0000 (02:45 +0000)
Before every test was using a section with an address of zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241427 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/RuntimeDyld/X86/MachO_i386_DynNoPIC_relocations.s

index 6b2fe9532c2f350816f4fa4d13d80cb693852a7c..17c332a11c3322f60ae09f1c50461c8e8c196373 100644 (file)
@@ -1,7 +1,10 @@
 # RUN: llvm-mc -triple=i386-apple-macosx10.4 -relocation-model=dynamic-no-pic -filetype=obj -o %T/test_i386.o %s
 # RUN: llvm-rtdyld -triple=i386-apple-macosx10.4 -verify -check=%s %/T/test_i386.o
 
-       .section        __TEXT,__text,regular,pure_instructions
+// Put the section used in the test at a non zero address.
+       .long 4
+
+       .section        __TEXT,__text2,regular,pure_instructions
        .globl  bar
        .align  4, 0x90
 bar: