brintos

brintos / llvm-project-archived public Read only

0
0
Text · 888 B · 9500aed Raw
38 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj  -arm-add-build-attributes -triple=armv7a-none-linux-gnueabi %s -o %t.o3// RUN: ld.lld %t.o -o %t.so -shared4// RUN: llvm-readobj -S %t.so | FileCheck %s5 6// Test that when all the .ARM.exidx sections are merged into a single7// synthetic EXIDX_CANTUNWIND entry we can still set the SHF_LINK_ORDER8// link.9 .syntax unified10 .section .text.1, "ax", %progbits11 .globl f112 .type f1, %function13f1:14 bx lr15 16 .section .text.2, "ax", %progbits17 .globl f218 .type f2, %function19f2:20 .fnstart21 bx lr22 .cantunwind23 .fnend24 25// CHECK:      Name: .ARM.exidx26// CHECK-NEXT: Type: SHT_ARM_EXIDX27// CHECK-NEXT: Flags [28// CHECK-NEXT:   SHF_ALLOC29// CHECK-NEXT:   SHF_LINK_ORDER30// CHECK-NEXT: ]31// CHECK-NEXT: Address:32// CHECK-NEXT: Offset:33// CHECK-NEXT: Size:34// CHECK-NEXT: Link: [[INDEX:.*]]35 36// CHECK:      Index: [[INDEX]]37// CHECK-NEXT: Name: .text38