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
12 # Test section difference relocation to non-lazy ptr section.
13 # rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb
16 movl x$non_lazy_ptr-tmp0$pb(%eax), %eax
19 # Test VANILLA relocation to jump table.
20 # 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
35 .indirect_symbol bling
36 .ascii "\364\364\364\364\364"
38 .section __IMPORT,__pointers,non_lazy_symbol_pointers
48 .zerofill __DATA,__common,y,8,3
50 .subsections_via_symbols