1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t.o
3# RUN: ld.lld -o %t1 --script %s %t.o
4
5## Check we do not crash.
6
7PHDRS { foo PT_DYNAMIC; }
8
9SECTIONS {
10  .text : { *(.text) } : foo
11}
12