1# REQUIRES: arm-registered-target 2## Ignore ARM mapping symbols (with a prefix of $a, $d or $t). 3 4# RUN: llvm-mc -filetype=obj -triple=armv7-none-linux %s -o %t 5 6## Verify that mapping symbols are actually present in the object at expected 7## addresses. 8# RUN: llvm-nm --special-syms %t | FileCheck %s --check-prefix=MAPPING_A --match-full-lines 9 10# MAPPING_A: 00000004 t $a 11# MAPPING_A-NEXT: 00000000 t $d 12# MAPPING_A-NEXT: 00000008 t $d 13# MAPPING_A-NEXT: 00000000 T foo 14 15# RUN: llvm-mc -filetype=obj -triple=thumbv7-none-linux %s -o %tthumb 16# RUN: llvm-nm --special-syms %tthumb | FileCheck %s --check-prefix=MAPPING_T --match-full-lines 17 18# MAPPING_T: 00000000 t $d 19# MAPPING_T-NEXT: 00000006 t $d 20# MAPPING_T-NEXT: 00000004 t $t 21# MAPPING_T-NEXT: 00000000 T foo 22 23# RUN: llvm-symbolizer --obj=%t 4 8 | FileCheck %s -check-prefix SYMBOL 24# RUN: llvm-symbolizer --obj=%tthumb 4 8 | FileCheck %s -check-prefix SYMBOL 25 26# SYMBOL: foo 27# SYMBOL-NEXT: ??:0:0 28# SYMBOL-EMPTY: 29# SYMBOL-NEXT: foo 30# SYMBOL-NEXT: ??:0:0 31 32.globl foo 33foo: 34 .word 32 35 nop 36 .word 32 37