1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
llvm-mirror/test/tools/yaml2obj/elf-header-elfdatanone.yaml
George Rimar bd3c267f5b [yaml2obj] - Allow producing ELFDATANONE ELFs
I need this to remove a binary from LLD test suite.
The patch also simplifies the code a bit.

Differential revision: https://reviews.llvm.org/D59082

llvm-svn: 355591
2019-03-07 12:09:19 +00:00

16 lines
380 B
YAML

## We have a YAML file describing an invalid data type.
## Check we are able to produce the invalid binary.
# RUN: yaml2obj %s -o %t.o
## Check that EI_DATA field is ELFDATANONE(0)
# RUN: od -b %t.o +5 | FileCheck %s
# CHECK: 0000005 000
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATANONE
Type: ET_REL
Machine: EM_X86_64