/* Test when no program segment set it's not generated. RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1 RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix PROGRAM-PHDR %s */ ENTRY(_start) PHDRS { text PT_LOAD; } SECTIONS { .text : { *(.text) } :text .data : { *(.data) } } /* PROGRAM-PHDR-NOT: Type: PT_PHDR (0x6) */