summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorgeorgerim <georgerim@gmail.com>2019-10-25 11:55:11 +0300
committergeorgerim <georgerim@gmail.com>2019-10-25 12:19:46 +0300
commit53c164e2216fd705ceadfdec6ac44b5b175d9248 (patch)
tree9de735b141f6cb4e83a45605cb1094f7fc5fc28b /llvm/test/Object
parent2a3dc6b74f413c423fe66364c383b1c223ecd4fd (diff)
downloadbcm5719-llvm-53c164e2216fd705ceadfdec6ac44b5b175d9248.tar.gz
bcm5719-llvm-53c164e2216fd705ceadfdec6ac44b5b175d9248.zip
[llvm/Object] - Fix the error message reported for a broken SHT_SYMTAB_SHNDX section.
SHT_SYMTAB_SHNDX should have the same number of entries as the symbol table associated (https://www.sco.com/developers/gabi/latest/ch4.sheader.html) We currently can report the following message: "SHT_SYMTAB_SHNDX section has sh_size (24) which is not equal to the number of symbols (2)" It is just broken. This patch refines/fixes it. Differential revision: https://reviews.llvm.org/D69305
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/invalid.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test
index 56372bf37c2..396776c5f91 100644
--- a/llvm/test/Object/invalid.test
+++ b/llvm/test/Object/invalid.test
@@ -213,7 +213,7 @@ Sections:
# RUN: yaml2obj %s --docnum=11 -o %t11
# RUN: not llvm-readobj --symbols %t11 2>&1 | FileCheck --check-prefix=INVALID-XINDEX-SIZE %s
-# INVALID-XINDEX-SIZE: error: {{.*}}: SHT_SYMTAB_SHNDX section has sh_size (24) which is not equal to the number of symbols (2)
+# INVALID-XINDEX-SIZE: error: {{.*}}: SHT_SYMTAB_SHNDX has 2 entries, but the symbol table associated has 1
--- !ELF
FileHeader:
OpenPOWER on IntegriCloud