1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Test tha we produce an external relocation. There is no apparent need for it, but 4*9880d681SAndroid Build Coastguard Worker; ld64 (241.9) crashes if we don't. 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; CHECK: Relocations [ 7*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Section __bar { 8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Relocation { 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Offset: 0x0 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: PCRel: 0 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Length: 3 12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Type: ARM64_RELOC_UNSIGNED (0) 13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Symbol: Lbar 14*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: } 15*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: } 16*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ] 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker .section __TEXT,__cstring 19*9880d681SAndroid Build Coastguard WorkerLfoo: 20*9880d681SAndroid Build Coastguard Worker .asciz "Hello World!" 21*9880d681SAndroid Build Coastguard WorkerLbar: 22*9880d681SAndroid Build Coastguard Worker .asciz "cString" 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Worker .section __foo,__bar,literal_pointers 25*9880d681SAndroid Build Coastguard Worker .quad Lbar 26