llvm.org GIT mirror llvm / 785cf2e test / tools / llvm-readobj / reloc-types-macho-arm.test
785cf2e

Tree @785cf2e (Download .tar.gz)

reloc-types-macho-arm.test @785cf2eraw · history · blame

## Test that llvm-readobj/llvm-readelf shows proper relocation type
## names and values for macho-arm target.

## TODO: use yaml2obj.
# RUN: llvm-readobj -r --expand-relocs %p/Inputs/relocs.obj.macho-arm | FileCheck %s

# CHECK: Type: ARM_RELOC_VANILLA (0)
# CHECK: Type: ARM_RELOC_PAIR (1)
# CHECK: Type: ARM_RELOC_SECTDIFF (2)
# CHECK: Type: ARM_RELOC_LOCAL_SECTDIFF (3)
# CHECK: Type: ARM_RELOC_PB_LA_PTR (4)
# CHECK: Type: ARM_RELOC_BR24 (5)
# CHECK: Type: ARM_THUMB_RELOC_BR22 (6)
# CHECK: Type: ARM_THUMB_32BIT_BRANCH (7)
# CHECK: Type: ARM_RELOC_HALF (8)
# CHECK: Type: ARM_RELOC_HALF_SECTDIFF (9)