1# REQUIRES: arm
2# RUN: echo ".fnstart; bx lr; .cantunwind; .fnend" \
3# RUN:   | llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi - -o %t.o
4# RUN: ld.lld -T %s %t.o -shared -o %t.so
5# RUN: llvm-readobj --program-headers %t.so | FileCheck %s
6
7# CHECK: Type: PT_ARM_EXIDX
8
9PHDRS { ph_text PT_LOAD; }
10SECTIONS {
11  . = SIZEOF_HEADERS;
12  .text : { *(.text) } : ph_text
13}
14