blob: 208d4d72ad43bfe9b0650616bff192621471eb91 [file] [log] [blame]
# 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
}