2 # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux /dev/null -o %t.o
3 # RUN: ld.lld -z wxneeded --script %s %t.o -o %t
4 # RUN: llvm-readobj --program-headers %t | FileCheck %s
6 PHDRS { text PT_LOAD FILEHDR PHDRS; wxneeded PT_OPENBSD_WXNEEDED; }
8 # CHECK: ProgramHeader {
9 # CHECK: Type: PT_OPENBSD_WXNEEDED (0x65A3DBE7)
10 # CHECK-NEXT: Offset: 0x0
11 # CHECK-NEXT: VirtualAddress: 0x0
12 # CHECK-NEXT: PhysicalAddress: 0x0
13 # CHECK-NEXT: FileSize: 0
14 # CHECK-NEXT: MemSize: 0
18 # CHECK-NEXT: Alignment: 0