zig/deps/lld/test/ELF/linkerscript/arm-exidx-phdrs.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

17 lines
458 B
ArmAsm

// REQUIRES: arm
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
// RUN: echo "PHDRS { ph_text PT_LOAD; } \
// RUN: SECTIONS { \
// RUN: . = SIZEOF_HEADERS; \
// RUN: .text : { *(.text) } : ph_text \
// RUN: }" > %t.script
// RUN: ld.lld -T %t.script %t.o -shared -o %t.so
// RUN: llvm-readobj --program-headers %t.so | FileCheck %s
// CHECK: Type: PT_ARM_EXIDX
.fnstart
bx lr
.cantunwind
.fnend