Files
clang-p2996/lld/test/ELF/invalid/data-encoding.test
George Rimar 738146ab33 [LLD][ELF] - Replace one of the tests with a YAML version.
This removes one more binary from the inputs.

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

llvm-svn: 356334
2019-03-17 15:46:03 +00:00

18 lines
435 B
Plaintext

# REQUIRES: x86
# The object in the archive has invalid data encoding.
# Check we report this.
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-ar rcs %t.a %t.o
# RUN: not ld.lld --whole-archive %t.a -o /dev/null 2>&1 | FileCheck %s
# CHECK: {{.*}}.a({{.*}}.o): corrupted ELF file: invalid data encoding
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATANONE
Type: ET_REL
Machine: EM_X86_64