brintos

brintos / llvm-project-archived public Read only

0
0
Text · 745 B · 4a6eb04 Raw
26 lines · plain
1; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s2 3; Test tha we produce an external relocation. There is no apparent need for it, but4; ld64 (241.9) crashes if we don't.5 6; CHECK:      Relocations [7; CHECK-NEXT:   Section __bar {8; CHECK-NEXT:     Relocation {9; CHECK-NEXT:       Offset: 0x010; CHECK-NEXT:       PCRel: 011; CHECK-NEXT:       Length: 312; CHECK-NEXT:       Type: ARM64_RELOC_UNSIGNED (0)13; CHECK-NEXT:       Symbol: Lbar14; CHECK-NEXT:     }15; CHECK-NEXT:   }16; CHECK-NEXT: ]17 18        .section        __TEXT,__cstring19Lfoo:20        .asciz  "Hello World!"21Lbar:22        .asciz  "cString"23 24        .section        __foo,__bar,literal_pointers25        .quad   Lbar26