1 ; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s 2 3 ; This is a regression test making sure we don't crash. 4 5 ; CHECK: Relocations [ 6 ; CHECK-NEXT: Section __text { 7 ; CHECK-NEXT: Relocation { 8 ; CHECK-NEXT: Offset: 0x0 9 ; CHECK-NEXT: PCRel: 0 10 ; CHECK-NEXT: Length: 2 11 ; CHECK-NEXT: Type: ARM64_RELOC_PAGEOFF12 (4) 12 ; CHECK-NEXT: Symbol: ltmp1 13 ; CHECK-NEXT: } 14 ; CHECK-NEXT: } 15 ; CHECK-NEXT: ] 16 17 18 ldr x0, [x8, L_bar@PAGEOFF] 19 20 .section __foo,__bar,regular,no_dead_strip 21 L_bar: 22 .quad 0 23