# REQUIRES: arm
# RUN: echo ".fnstart; bx lr; .cantunwind; .fnend" \
# RUN:   | llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi - -o %t.o
# RUN: ld.lld -T %s %t.o -shared -o %t.so
# RUN: llvm-readobj --program-headers %t.so | FileCheck %s

# CHECK: Type: PT_ARM_EXIDX

PHDRS { ph_text PT_LOAD; }
SECTIONS {
  . = SIZEOF_HEADERS;
  .text : { *(.text) } : ph_text
}
