[ELF] - Improve relocatable-many-sections.s test case. NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 18 Jul 2018 08:52:09 +0000 (08:52 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 18 Jul 2018 08:52:09 +0000 (08:52 +0000)
This adds a check for .shstrtab section index.

llvm-svn: 337365

lld/test/ELF/relocatable-many-sections.s

index d98c75b..df22154 100644 (file)
@@ -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