1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s 2 3 // CHECK: # Relocation 0 4 // CHECK: (('word-0', 0xe4000045), 5 // CHECK: ('word-1', 0x4)), 6 // CHECK: # Relocation 1 7 // CHECK: (('word-0', 0xe1000000), 8 // CHECK: ('word-1', 0x6)), 9 // CHECK: # Relocation 2 10 // CHECK: (('word-0', 0x40), 11 // CHECK: ('word-1', 0xd000003)), 12 // CHECK: # Relocation 3 13 // CHECK: (('word-0', 0x3b), 14 // CHECK: ('word-1', 0xd000003)), 15 // CHECK: # Relocation 4 16 // CHECK: (('word-0', 0x36), 17 // CHECK: ('word-1', 0xd000003)), 18 // CHECK: # Relocation 5 19 // CHECK: (('word-0', 0xe0000031), 20 // CHECK: ('word-1', 0x4)), 21 // CHECK: # Relocation 6 22 // CHECK: (('word-0', 0xe000002c), 23 // CHECK: ('word-1', 0x4)), 24 // CHECK: # Relocation 7 25 // CHECK: (('word-0', 0x27), 26 // CHECK: ('word-1', 0x5000001)), 27 // CHECK: # Relocation 8 28 // CHECK: (('word-0', 0xe0000022), 29 // CHECK: ('word-1', 0x2)), 30 // CHECK: # Relocation 9 31 // CHECK: (('word-0', 0xe000001d), 32 // CHECK: ('word-1', 0x2)), 33 // CHECK: # Relocation 10 34 // CHECK: (('word-0', 0x18), 35 // CHECK: ('word-1', 0x5000001)), 36 // CHECK-NEXT: ]) 37 38 xorl %eax,%eax 39 40 .globl _a 41 _a: 42 xorl %eax,%eax 43 _b: 44 _d: 45 xorl %eax,%eax 46 L0: 47 xorl %eax,%eax 48 L1: 49 50 call L0 51 call L0 - 1 52 call L0 + 1 53 call _a 54 call _a - 1 55 call _a + 1 56 call _b 57 call _b - 1 58 call _b + 1 59 call _c 60 call _c - 1 61 call _c + 1 62 // call _a - L0 63 call _b - L0 64 65 .subsections_via_symbols 66