1 # RUN: llvm-mc -triple=i386-apple-macosx10.4 -relocation-model=dynamic-no-pic -filetype=obj -o %T/test_i386.o %s
2 # RUN: llvm-rtdyld -triple=i386-apple-macosx10.4 -verify -check=%s %/T/test_i386.o
4 // Put the section used in the test at a non zero address.
7 .section __TEXT,__text2,regular,pure_instructions
14 # Test section difference relocation to non-lazy ptr section.
15 # rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb + 8
17 movl (x$non_lazy_ptr-tmp0$pb)+8(%eax), %eax
20 # Test VANILLA relocation to jump table.
21 # rtdyld-check: decode_operand(inst2, 0) = bling$stub - next_pc(inst2)
26 # Test scattered VANILLA relocations.
32 .section __IMPORT,__jump_table,symbol_stubs,pure_instructions+self_modifying_code,5
34 .indirect_symbol bling
35 .ascii "\364\364\364\364\364"
37 .section __IMPORT,__pointers,non_lazy_symbol_pointers
46 .zerofill __DATA,__common,y,8,3
48 .subsections_via_symbols