]> granicus.if.org Git - llvm/commitdiff
[MC] Fix typo: .symtab_shndxr -> .symtab_shndx
authorFangrui Song <maskray@google.com>
Fri, 12 Apr 2019 02:16:15 +0000 (02:16 +0000)
committerFangrui Song <maskray@google.com>
Fri, 12 Apr 2019 02:16:15 +0000 (02:16 +0000)
This special section is named .symtab_shndx, according to gABI Chapter 4
Sections, and the name is used by some other tools. Though the section
type SHT_SYMTAB_SHNDX is what really matters, let's fix the typo
introduced in rL204769 :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358247 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/ELFObjectWriter.cpp

index 4e0a4f45431fb107e4969bbda49f9621fd475194..1d4f3afe2ea26664748d56f8e214820486c3fbfe 100644 (file)
@@ -714,7 +714,7 @@ void ELFWriter::computeSymbolTable(
 
   if (HasLargeSectionIndex) {
     MCSectionELF *SymtabShndxSection =
-        Ctx.getELFSection(".symtab_shndxr", ELF::SHT_SYMTAB_SHNDX, 0, 4, "");
+        Ctx.getELFSection(".symtab_shndx", ELF::SHT_SYMTAB_SHNDX, 0, 4, "");
     SymtabShndxSectionIndex = addToSectionTable(SymtabShndxSection);
     SymtabShndxSection->setAlignment(4);
   }