1# This test ensures an object without a program header will retain zero values 2# for offset and header size when copied with llvm-objcopy. 3# RUN: yaml2obj %s -o %t 4# RUN: llvm-objcopy %t %t2 5# RUN: llvm-readobj --file-headers %t2 | FileCheck %s 6 7!ELF 8FileHeader: 9 Class: ELFCLASS64 10 Data: ELFDATA2LSB 11 Type: ET_EXEC 12 Machine: EM_X86_64 13 14# CHECK: ProgramHeaderOffset: 0x0 15# CHECK: ProgramHeaderEntrySize: 0 16# CHECK-NEXT: ProgramHeaderCount: 0 17