1## Check that llvm-objdump dumps OpenBSD program headers correctly. 2 3# RUN: yaml2obj %s -o %t 4# RUN: llvm-objdump -p %t | FileCheck %s 5 6# CHECK: OPENBSD_RANDOMIZE off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**0 7# CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags --- 8# CHECK-NEXT: OPENBSD_WXNEEDED off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**0 9# CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags --- 10# CHECK-NEXT: OPENBSD_BOOTDATA off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**0 11# CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags --- 12 13--- !ELF 14FileHeader: 15 Class: ELFCLASS64 16 Data: ELFDATA2LSB 17 Type: ET_EXEC 18 Machine: EM_X86_64 19ProgramHeaders: 20 - Type: 0x65a3dbe6 ## PT_OPENBSD_RANDOMIZE 21 - Type: 0x65a3dbe7 ## PT_OPENBSD_WXNEEDED 22 - Type: 0x65a41be6 ## PT_OPENBSD_BOOTDATA 23