summaryrefslogtreecommitdiffstats
path: root/lld
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-07-18 08:52:09 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-07-18 08:52:09 +0000
commit2566c0a2f2264aba6aa7b4d56fe7c2b4708268ee (patch)
tree8652cadf2b34d986d114c9c376ca7d336fbd56fc /lld
parent3404d4dd4171695c1b0d3c19cbfb3f546cf7f3ba (diff)
downloadbcm5719-llvm-2566c0a2f2264aba6aa7b4d56fe7c2b4708268ee.tar.gz
bcm5719-llvm-2566c0a2f2264aba6aa7b4d56fe7c2b4708268ee.zip
[ELF] - Improve relocatable-many-sections.s test case. NFC.
This adds a check for .shstrtab section index. llvm-svn: 337365
Diffstat (limited to 'lld')
-rw-r--r--lld/test/ELF/relocatable-many-sections.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/lld/test/ELF/relocatable-many-sections.s b/lld/test/ELF/relocatable-many-sections.s
index d98c75ba647..df22154d0c9 100644
--- a/lld/test/ELF/relocatable-many-sections.s
+++ b/lld/test/ELF/relocatable-many-sections.s
@@ -9,6 +9,13 @@
# CHECK: SectionHeaderCount: 0 (65541)
# CHECK-NEXT: StringTableSectionIndex: 65535 (65539)
+## Check that 65539 is really the index of .shstrtab section.
+# RUN: llvm-objdump -section-headers -section=.shstrtab %t \
+# RUN: | FileCheck %s --check-prefix=SHSTRTAB
+# SHSTRTAB: Sections:
+# SHSTRTAB-NEXT: Idx Name
+# SHSTRTAB-NEXT: 65539 .shstrtab
+
.macro gen_sections4 x
.section a\x
.section b\x
OpenPOWER on IntegriCloud