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 .section __TEXT,__text,regular,pure_instructions
11 # Test section difference relocation to non-lazy ptr section.
12 # rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb
14 movl x$non_lazy_ptr-tmp0$pb(%eax), %eax
17 # Test VANILLA relocation to jump table.
18 # rtdyld-check: decode_operand(inst2, 0) = bling$stub - next_pc(inst2)
23 # Test scattered VANILLA relocations.
29 .section __IMPORT,__jump_table,symbol_stubs,pure_instructions+self_modifying_code,5
31 .indirect_symbol bling
32 .ascii "\364\364\364\364\364"
34 .section __IMPORT,__pointers,non_lazy_symbol_pointers
43 .zerofill __DATA,__common,y,8,3
45 .subsections_via_symbols