1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple=i386-apple-macosx10.4 -filetype=obj -o %t/test_i386.o %s
3 # RUN: llvm-rtdyld -triple=i386-apple-macosx10.4 -verify -check=%s %t/test_i386.o
5 // Put the section used in the test at
a non zero address.
8 .section __TEXT,__text2,regular,pure_instructions
15 # Test section difference relocation to non-lazy ptr section.
16 # rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb + 8
18 movl
(x$non_lazy_ptr-tmp0$pb
)+8(%eax
), %eax
21 # Test VANILLA relocation to jump table.
22 # rtdyld-check: decode_operand(inst2, 0) = bling$stub - next_pc(inst2)
27 # Test scattered VANILLA relocations.
33 .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
47 .zerofill __DATA,__common,y,8,3
49 .subsections_via_symbols