brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · e79998c Raw
43 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t3// RUN: ld.lld %t -o %t24// RUN: llvm-readobj --symbols %t2 | FileCheck %s5// RUN: ld.lld --shared %t -o %t36// RUN: llvm-readobj --symbols %t3 | FileCheck -check-prefix=CHECK-PI %s7 8// Check that the symbols generated for Thunks have the correct symbol type9// of STT_FUNC and the correct value of bit 0 (0 for ARM 1 for Thumb)10 .syntax unified11 .section .text.thumb, "ax", %progbits12 .thumb13 .balign 0x100014 .globl thumb_fn15 .type thumb_fn, %function16thumb_fn:17 b.w arm_fn18 19 .section .text.arm, "ax", %progbits20 .arm21 .balign 0x100022 .globl arm_fn23 .type arm_fn, %function24arm_fn:25 b thumb_fn26 27// CHECK:     Name: __Thumbv7ABSLongThunk_arm_fn28// CHECK-NEXT:     Value: 0x2200529// CHECK-NEXT:     Size: 1030// CHECK-NEXT:    Binding: Local (0x0)31// CHECK-NEXT:    Type: Function (0x2)32// CHECK:     Name: __ARMv7ABSLongThunk_thumb_fn33// CHECK-NEXT:     Value: 0x2201034// CHECK-NEXT:     Size: 1235// CHECK-NEXT:    Binding: Local (0x0)36// CHECK-NEXT:    Type: Function (0x2)37 38// CHECK-PI:     Name: __ThumbV7PILongThunk_arm_fn39// CHECK-PI-NEXT:     Value: 0x1200540// CHECK-PI-NEXT:     Size: 1241// CHECK-PI-NEXT:    Binding: Local (0x0)42// CHECK-PI-NEXT:    Type: Function (0x2)43