[lld] r360139 - [LLD][ELF] - Remove symbol-name-offset.elf binary from test cases.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue May 7 05:59:44 PDT 2019
Author: grimar
Date: Tue May 7 05:59:44 2019
New Revision: 360139
URL: http://llvm.org/viewvc/llvm-project?rev=360139&view=rev
Log:
[LLD][ELF] - Remove symbol-name-offset.elf binary from test cases.
It was possible to convert the test case to YAML test.
After that, we have only one binary test left in LLD/ELF.
Added:
lld/trunk/test/ELF/invalid/symbol-name.test
Removed:
lld/trunk/test/ELF/invalid/Inputs/symbol-name-offset.elf
lld/trunk/test/ELF/invalid/symbol-name.s
Removed: lld/trunk/test/ELF/invalid/Inputs/symbol-name-offset.elf
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/Inputs/symbol-name-offset.elf?rev=360138&view=auto
==============================================================================
Binary file - no diff available.
Removed: lld/trunk/test/ELF/invalid/symbol-name.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/symbol-name.s?rev=360138&view=auto
==============================================================================
--- lld/trunk/test/ELF/invalid/symbol-name.s (original)
+++ lld/trunk/test/ELF/invalid/symbol-name.s (removed)
@@ -1,7 +0,0 @@
-# REQUIRES: x86
-
-## symbol-name-offset.elf contains symbol with invalid (too large)
-## st_name value.
-# RUN: not ld.lld %S/Inputs/symbol-name-offset.elf \
-# RUN: -o /dev/null 2>&1 | FileCheck %s
-# CHECK: invalid symbol name offset
Added: lld/trunk/test/ELF/invalid/symbol-name.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/symbol-name.test?rev=360139&view=auto
==============================================================================
--- lld/trunk/test/ELF/invalid/symbol-name.test (added)
+++ lld/trunk/test/ELF/invalid/symbol-name.test Tue May 7 05:59:44 2019
@@ -0,0 +1,15 @@
+# RUN: yaml2obj %s -o %t.o
+# RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck %s
+# CHECK: error: {{.*}}.o: invalid symbol name offset
+
+## YAML below contains symbol with name offset in st_name
+## larger than string table size. Check we report it.
+
+!ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_REL
+ Machine: EM_X86_64
+Symbols:
+ - NameIndex: 255
More information about the llvm-commits
mailing list