From 2566c0a2f2264aba6aa7b4d56fe7c2b4708268ee Mon Sep 17 00:00:00 2001 From: George Rimar Date: Wed, 18 Jul 2018 08:52:09 +0000 Subject: [PATCH] [ELF] - Improve relocatable-many-sections.s test case. NFC. This adds a check for .shstrtab section index. llvm-svn: 337365 --- lld/test/ELF/relocatable-many-sections.s | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lld/test/ELF/relocatable-many-sections.s b/lld/test/ELF/relocatable-many-sections.s index d98c75b..df22154d 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 -- 2.7.4