mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
fd5f9a7c78
There are 2 similar openbsd-phdrs.elf-x86-64 objects committed and used in test/Object and test/tools/llvm-objdump test cases. There is no reason to have them, we can use YAML instead. Patch does that. Differential revision: https://reviews.llvm.org/D66342 llvm-svn: 369189
23 lines
987 B
Plaintext
23 lines
987 B
Plaintext
## Check that llvm-objdump dumps OpenBSD program headers correctly.
|
|
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-objdump -p %t | FileCheck %s
|
|
|
|
# CHECK: OPENBSD_RANDOMIZE off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**0
|
|
# CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
|
|
# CHECK-NEXT: OPENBSD_WXNEEDED off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**0
|
|
# CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
|
|
# CHECK-NEXT: OPENBSD_BOOTDATA off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**0
|
|
# CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
ProgramHeaders:
|
|
- Type: 0x65a3dbe6 ## PT_OPENBSD_RANDOMIZE
|
|
- Type: 0x65a3dbe7 ## PT_OPENBSD_WXNEEDED
|
|
- Type: 0x65a41be6 ## PT_OPENBSD_BOOTDATA
|