summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-07-05 11:28:49 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-07-05 11:28:49 +0000
commitd0921a4696e097c54fa67f573718561dbdbd3103 (patch)
tree08caf3fa2f8d695e1eb9eb66cf78b185c5cf4481 /llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test
parentfdef18b42d02d69ca3a7be9c8c38a83ace51d9ff (diff)
downloadbcm5719-llvm-d0921a4696e097c54fa67f573718561dbdbd3103.tar.gz
bcm5719-llvm-d0921a4696e097c54fa67f573718561dbdbd3103.zip
[Object/ELF.h] - Improve error reporting.
The errors coming from ELF.h are usually not very useful because they are uninformative. This patch is a first step to improve the situation. I tested this patch with a run of check-llvm and found that few messages are untested. In this patch, I did not add more tests but marked all such cases with a "TODO" comment. For all tested messages I extended the error text to provide more details (see test cases changed). Differential revision: https://reviews.llvm.org/D64014 llvm-svn: 365183
Diffstat (limited to 'llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test')
-rw-r--r--llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test b/llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test
index 5aa993c9a4b..3c861287b5c 100644
--- a/llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test
+++ b/llvm/test/tools/llvm-readobj/elf-broken-dynsym-link.test
@@ -6,7 +6,7 @@
# RUN: llvm-readobj -S %t1 2>&1 | FileCheck %s --check-prefixes=LLVM,ERR
# RUN: llvm-readelf -S %t1 2>&1 | FileCheck %s --check-prefixes=GNU,ERR
-# ERR: warning: invalid sh_type for string table, expected SHT_STRTAB
+# ERR: warning: invalid sh_type for string table section [index 0]: expected SHT_STRTAB, but got SHT_NULL
# LLVM: Name: .dynsym
# LLVM-NEXT: Type: SHT_DYNSYM
OpenPOWER on IntegriCloud