brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 50e7820 Raw
51 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o3// RUN: ld.lld %t.o -o %t4// RUN: llvm-readelf -S %t | FileCheck %s5 6// RUN: echo 'SECTIONS { .text.f1 : { *(.text.f1) } .text.f2 : { *(.text.f2) } }' > %t.lds7// RUN: ld.lld -T %t.lds %t.o -o %t18// RUN: llvm-readelf -S %t1 | FileCheck --check-prefix=MULTI %s9 10// Check that only a single .ARM.exidx output section is created when11// there are input sections of the form .ARM.exidx.<section-name>. The12// assembler creates the .ARM.exidx input sections with the .cantunwind13// directive14 15// CHECK:      [Nr] Name       Type      {{.*}} Flg Lk16// CHECK-NEXT: [ 0]17// CHECK-NEXT: [ 1] .ARM.exidx ARM_EXIDX {{.*}}  AL  218// CHECK-NEXT: [ 2] .text      PROGBITS  {{.*}}  AX  019 20// MULTI:      [Nr] Name       Type      {{.*}} Flg Lk21// MULTI-NEXT: [ 0]22// MULTI-NEXT: [ 1] .ARM.exidx ARM_EXIDX {{.*}}  AL  223// MULTI-NEXT: [ 2] .text.f1   PROGBITS  {{.*}}  AX  024// MULTI-NEXT: [ 3] .text.f2   PROGBITS  {{.*}}  AX  025// MULTI-NEXT: [ 4] .text      PROGBITS  {{.*}}  AX  026 27 .syntax unified28 .section .text, "ax",%progbits29 .globl _start30_start:31 .fnstart32 bx lr33 .cantunwind34 .fnend35 36 .section .text.f1, "ax", %progbits37 .globl f138f1:39 .fnstart40 bx lr41 .cantunwind42 .fnend43 44 .section .text.f2, "ax", %progbits45 .globl f246f2:47 .fnstart48 bx lr49 .cantunwind50 .fnend51