16948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s 26948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 36948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar; Test that we produce an external relocation. This is a known and temporary bug 46948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar; in ld64, where it mishandles pointer-sized internal relocations. We should be 56948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar; able to remove this entirely soon. 66948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 76948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK: Relocations [ 86948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Section __data { 96948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Relocation { 106948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Offset: 0x18 116948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: PCRel: 0 126948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Length: 3 136948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Type: ARM64_RELOC_UNSIGNED (0) 146948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Symbol: Llit16 156948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: } 166948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Relocation { 176948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Offset: 0x10 186948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: PCRel: 0 196948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Length: 3 206948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Type: ARM64_RELOC_UNSIGNED (0) 216948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Symbol: Llit8 226948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: } 236948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Relocation { 246948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Offset: 0x8 256948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: PCRel: 0 266948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Length: 3 276948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Type: ARM64_RELOC_UNSIGNED (0) 286948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Symbol: Llit4 296948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: } 306948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Relocation { 316948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Offset: 0x0 326948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: PCRel: 0 336948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Length: 3 346948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Type: ARM64_RELOC_UNSIGNED (0) 356948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: Symbol: Lcfstring 366948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: } 376948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: } 386948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar// CHECK-NEXT: ] 396948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 406948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .section __DATA,__cfstring 416948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga NainarLcfstring: 426948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 436948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .section __DATA,__literal4,4byte_literals 446948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga NainarLlit4: 456948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .word 42 466948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 476948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .section __DATA,__literal8,8byte_literals 486948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga NainarLlit8: 496948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad 42 506948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 516948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .section __DATA,__literal16,16byte_literals 526948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga NainarLlit16: 536948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad 42 546948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad 42 556948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar 566948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .section __DATA,__data 576948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad Lcfstring 586948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad Llit4 596948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad Llit8 606948897e478cbd66626159776a8017b3c18579b9Pirama Arumuga Nainar .quad Llit16 61