• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@ RUN: llvm-mc -triple thumbv7-apple-ios7.0 -filetype=obj -o - %s | \
2@ RUN: llvm-readobj -r - | FileCheck %s
3
4        @ MachO relocations that end up expressed as internal
5        @ (scattered) still need to have the type set correctly.
6
7        .text
8        .thumb_func
9        .thumb
10        .globl _with_thumb
11_with_thumb:
12        bl _dest+10
13        blx _dest+20
14
15        .globl _with_arm
16        .arm
17_with_arm:
18        bl _dest+10
19        blx _dest+20
20        bne _dest+30
21        b _dest+40
22
23        .data
24_dest:
25        .word 42
26
27@ CHECK: Relocations [
28@ CHECK-NEXT: Section __text {
29@ CHECK-NEXT: 0x14 1 2 n/a ARM_RELOC_BR24 1 0x18
30@ CHECK-NEXT: 0x10 1 2 n/a ARM_RELOC_BR24 1 0x18
31@ CHECK-NEXT: 0xC 1 2 n/a ARM_RELOC_BR24 1 0x18
32@ CHECK-NEXT: 0x8 1 2 n/a ARM_RELOC_BR24 1 0x18
33@ CHECK-NEXT: 0x4 1 2 n/a ARM_THUMB_RELOC_BR22 1 0x18
34@ CHECK-NEXT: 0x0 1 2 n/a ARM_THUMB_RELOC_BR22 1 0x18
35