llvm-project/lld/test/ELF/linkerscript/arm-exidx-phdrs.test

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
372 B
Plaintext
Raw Normal View History

# 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
}