[LLD][ELF] - Convert binary input to yaml in sht-group.s test. NFC.

This removes test that used binary input and adds a yaml based test instead.

llvm-svn: 339774
This commit is contained in:
George Rimar 2018-08-15 14:10:15 +00:00
parent e8263f33d9
commit eecc92d7d3
3 changed files with 18 additions and 3 deletions

View File

@ -1,3 +0,0 @@
## sht-group.elf contains SHT_GROUP section with invalid sh_info.
# RUN: not ld.lld %p/Inputs/sht-group.elf -o /dev/null 2>&1 | FileCheck %s
# CHECK: invalid symbol index

View File

@ -0,0 +1,18 @@
# REQUIRES: x86
# RUN: yaml2obj %s -o %t.o
# RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck %s
# CHECK: invalid symbol index
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .group
Type: SHT_GROUP
Link: .symtab
Info: 12345
Members:
- SectionOrType: GRP_COMDAT