blob: 49cfa418162c357adc9c741f0798a6c98e3a8b79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
// Test case for rdar://10743265
// This tests that this expression does not cause a crash and produces two
// relocation entries:
// Relocation information (__TEXT,__text) 2 entries
// address pcrel length extern type scattered symbolnum/value
// 00000000 False long True SUB False _base
// 00000000 False long True UNSIGND False _start_ap_2
_base = .
.long (0x2000) + _start_ap_2 - _base
.word 0
_start_ap_2:
cli
// CHECK: ('_relocations', [
// CHECK: # Relocation 0
// CHECK: (('word-0', 0x0),
// CHECK: ('word-1', 0x5c000000)),
// CHECK: # Relocation 1
// CHECK: (('word-0', 0x0),
// CHECK: ('word-1', 0xc000001)),
// CHECK: ])
|