2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "PHDRS { foobar PT_LOAD FILEHDR PHDRS; }" > %t.script
4 # RUN: echo "SECTIONS { .text : { *(.text) } : foobar }" >> %t.script
5 # RUN: not ld.lld --script %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
7 # CHECK: could not allocate headers