/* Test when program segment doesn't contain PHDRS attribute. RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o RUN: not lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error RUN: FileCheck -check-prefix PROGRAM-PHDR-NO-PHDRS %s < %t1-error */ ENTRY(_start) PHDRS { header PT_PHDR; text PT_LOAD; } SECTIONS { .text : { *(.text) } :text .data : { *(.data) } } /* PROGRAM-PHDR-NO-PHDRS: Program header has invalid PHDRS attribute */