brintos

brintos / llvm-project-archived public Read only

0
0
Text · 896 B · f5421ba Raw
35 lines · plain
1@ RUN: llvm-mc -triple thumbv7-apple-ios7.0 -filetype=obj -o - %s | \2@ RUN: llvm-readobj -r - | FileCheck %s3 4        @ MachO relocations that end up expressed as internal5        @ (scattered) still need to have the type set correctly.6 7        .text8        .thumb_func9        .thumb10        .globl _with_thumb11_with_thumb:12        bl _dest+1013        blx _dest+2014 15        .globl _with_arm16        .arm17_with_arm:18        bl _dest+1219        blx _dest+2020        bne _dest+3221        b _dest+4022 23        .data24_dest:25        .word 4226 27@ CHECK: Relocations [28@ CHECK-NEXT: Section __text {29@ CHECK-NEXT: 0x14 1 2 n/a ARM_RELOC_BR24 1 0x1830@ CHECK-NEXT: 0x10 1 2 n/a ARM_RELOC_BR24 1 0x1831@ CHECK-NEXT: 0xC 1 2 n/a ARM_RELOC_BR24 1 0x1832@ CHECK-NEXT: 0x8 1 2 n/a ARM_RELOC_BR24 1 0x1833@ CHECK-NEXT: 0x4 1 2 n/a ARM_THUMB_RELOC_BR22 1 0x1834@ CHECK-NEXT: 0x0 1 2 n/a ARM_THUMB_RELOC_BR22 1 0x1835