1# REQUIRES: x86 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 5 6PHDRS { text PT_LOAD FILEHDR PHDRS; wxneeded PT_OPENBSD_WXNEEDED; } 7 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 15# CHECK-NEXT: Flags [ 16# CHECK-NEXT: PF_R 17# CHECK-NEXT: ] 18# CHECK-NEXT: Alignment: 0 19# CHECK-NEXT: } 20