mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-24 14:26:48 +00:00

Summary: Tests under tools/llvm-objdump should not use inputs from Object. Copied the required inputs and aligned the new tests to be more consistent with the existing tests in this respect. Reviewers: ioeric Reviewed By: ioeric Subscribers: davide, djasper, cfe-commits Differential Revision: https://reviews.llvm.org/D28799 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292222 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
1.2 KiB
Plaintext
21 lines
1.2 KiB
Plaintext
## openbsd-phdrs.elf-x86-64 was generated using GNU ld (GNU Binutils for Ubuntu) 2.26.1.
|
|
## llvm-mc -filetype=obj -triple=x86_64-pc-linux test.s -o main.o
|
|
## ld -script linker.script main.o -o openbsd-phdrs.elf-x86-64
|
|
##
|
|
## test.s is an empty file.
|
|
## linker.script:
|
|
## PHDRS { text PT_LOAD FILEHDR PHDRS; foo 0x65a3dbe6; bar 0x65a3dbe7; zed 0x65a41be6; }
|
|
## Where 0x65a3dbe6 is the value of PT_OPENBSD_RANDOMIZE,
|
|
## 0x65a3dbe7 is the value of PT_OPENBSD_WXNEEDED,
|
|
## 0x65a41be6 is the value of PT_OPENBSD_BOOTDATA
|
|
## SECTIONS { . = SIZEOF_HEADERS; .all : { *(.*) } : text }
|
|
RUN: llvm-objdump -p %p/Inputs/openbsd-phdrs.elf-x86-64 \
|
|
RUN: | FileCheck %s
|
|
|
|
CHECK: OPENBSD_RANDOMIZE off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
|
|
CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
|
|
CHECK-NEXT: OPENBSD_WXNEEDED off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
|
|
CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
|
|
CHECK-NEXT: OPENBSD_BOOTDATA off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
|
|
CHECK-NEXT: filesz 0x0000000000000000 memsz 0x0000000000000000 flags ---
|