Clarify/fix typo. No functionality change.
authorNick Lewycky <nicholas@mxc.ca>
Fri, 7 Oct 2011 20:56:23 +0000 (20:56 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 7 Oct 2011 20:56:23 +0000 (20:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141412 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/ELFObjectWriter.cpp

index 8931fcac6a50ffb8444b3bf01d91e9d1729bba62..549a5099376f95c5210fb8513f3a893839b312ff 100644 (file)
@@ -125,7 +125,7 @@ void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize,
 
   // e_shnum     = # of section header ents
   if (NumberOfSections >= ELF::SHN_LORESERVE)
-    Write16(0);
+    Write16(ELF::SHN_UNDEF);
   else
     Write16(NumberOfSections);
 
@@ -1233,7 +1233,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm,
 
   FileOff = OS.tell();
 
-  // ... and then the remainting sections ...
+  // ... and then the remaining sections ...
   for (unsigned i = NumRegularSections + 1; i < NumSections; ++i)
     WriteDataSectionData(Asm, Layout, *Sections[i]);
 }