7701c59c6805283bddea11ddd899aa7ab20af57e
[oota-llvm.git] / test / MC / MachO / ARM / no-subsections-reloc.s
1 @ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj
2 @ RUN: macho-dump --dump-section-data < %t.obj > %t.dump
3 @ RUN: FileCheck < %t.dump %s
4
5 @ When not using subsections-via-symbols, references to non-local symbols
6 @ in the same section can be resolved at assembly time w/o relocations.
7
8  .syntax unified
9  .text
10  .thumb
11  .thumb_func _foo
12 _foo:
13     ldr r3, bar
14 bar:
15     .long 0
16
17 @ CHECK: 'num_reloc', 0
18 @ CHECK: '_section_data', 'dff80030 00000000'