diff options
author | George Rimar <grimar@accesssoftek.com> | 2019-02-28 09:24:12 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2019-02-28 09:24:12 +0000 |
commit | c6846b8800d5e85047936523010026be7ac53c75 (patch) | |
tree | 2ad69c470a446c22918a425d9d5b1924e7d78d13 | |
parent | bf447a5bb5553dc979ffa77071b144a9cc83ddcc (diff) | |
download | bcm5719-llvm-c6846b8800d5e85047936523010026be7ac53c75.tar.gz bcm5719-llvm-c6846b8800d5e85047936523010026be7ac53c75.zip |
[LLD][ELF] - Stop using binary input in invalid/tls-symbol.s test. NFCI.
We can use yaml2obj instead, patch does this.
llvm-svn: 355075
-rw-r--r-- | lld/test/ELF/invalid/Inputs/tls-symbol.elf | bin | 456 -> 0 bytes | |||
-rw-r--r-- | lld/test/ELF/invalid/tls-symbol.s | 25 |
2 files changed, 22 insertions, 3 deletions
diff --git a/lld/test/ELF/invalid/Inputs/tls-symbol.elf b/lld/test/ELF/invalid/Inputs/tls-symbol.elf Binary files differdeleted file mode 100644 index 78c759897dd..00000000000 --- a/lld/test/ELF/invalid/Inputs/tls-symbol.elf +++ /dev/null diff --git a/lld/test/ELF/invalid/tls-symbol.s b/lld/test/ELF/invalid/tls-symbol.s index 99c47dc1302..d036859cee6 100644 --- a/lld/test/ELF/invalid/tls-symbol.s +++ b/lld/test/ELF/invalid/tls-symbol.s @@ -1,5 +1,24 @@ -# REQUIRES: x86 - ## The test file contains an STT_TLS symbol but has no TLS section. -# RUN: not ld.lld %S/Inputs/tls-symbol.elf -o /dev/null 2>&1 | FileCheck %s +## Check we report an error properly. + +# RUN: yaml2obj %s -o %t.o +# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s + # CHECK: has an STT_TLS symbol but doesn't have an SHF_TLS section + +--- !ELF +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_X86_64 +Sections: + - Name: .text + Type: SHT_PROGBITS + Flags: [ SHF_ALLOC, SHF_EXECINSTR ] + Content: '' +Symbols: + Global: + - Name: bar + Type: STT_TLS + Section: .text |