1 ## openbsd-phdrs.elf-x86-64 was generated using GNU ld (GNU Binutils for Ubuntu) 2.26.1.
2 ## llvm-mc -filetype=obj -triple=x86_64-pc-linux test.s -o main.o
3 ## ld -script linker.script main.o -o openbsd-phdrs.elf-x86-64
5 ## test.s is an empty file.
7 ## PHDRS { text PT_LOAD FILEHDR PHDRS; foo 0x65a3dbe6; bar 0x65a3dbe7; zed 0x65a41be6; }
8 ## Where 0x65a3dbe6 is the value of PT_OPENBSD_RANDOMIZE,
9 ## 0x65a3dbe7 is the value of PT_OPENBSD_WXNEEDED,
10 ## 0x65a41be6 is the value of PT_OPENBSD_BOOTDATA
11 ## SECTIONS { . = SIZEOF_HEADERS; .all : { *(.*) } : text }
12 RUN: llvm-objdump -p %p/Inputs/openbsd-phdrs.elf-x86-64 \
15 CHECK: OPENBSD_RANDOMIZE off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
16 CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
17 CHECK-NEXT: OPENBSD_WXNEEDED off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
18 CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
19 CHECK-NEXT: OPENBSD_BOOTDATA off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
20 CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---