1// REQUIRES: arm 2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o 3// RUN: ld.lld %t.o -o %t -shared 4 5// RUN: llvm-readelf --unwind %t | FileCheck %s 6 7// Check that any exidx sections for empty functions are discarded. 8 9// CHECK: Entries [ 10// CHECK-NEXT: Entry { 11// CHECK-NEXT: FunctionAddress: 12// CHECK-NEXT: Model: CantUnwind 13// CHECK-NEXT: } 14// CHECK-NEXT: Entry { 15// CHECK-NEXT: FunctionAddress: 16// CHECK-NEXT: Model: CantUnwind 17// CHECK-NEXT: } 18// CHECK-NEXT: ] 19 20.section .text.f0,"ax",%progbits 21.globl f0 22f0: 23.fnstart 24bx lr 25.cantunwind 26.fnend 27 28.section .text.f1,"ax",%progbits 29.globl f1 30f1: 31.fnstart 32.cantunwind 33.fnend 34 35.section .text.f2,"ax",%progbits 36.globl f2 37f2: 38.fnstart 39bx lr 40.cantunwind 41.fnend 42