Include non-alloca sections in the link.

llvm-svn: 244895
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 205ba87..e319fcd 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -41,13 +41,19 @@
   uint64_t Size = ELFObj->getNumSections();
   Chunks.reserve(Size);
   for (const Elf_Shdr &Sec : ELFObj->sections()) {
-    if (Sec.sh_type == SHT_SYMTAB) {
+    switch (Sec.sh_type) {
+    case SHT_SYMTAB:
       Symtab = &Sec;
-      continue;
-    }
-    if (Sec.sh_flags & SHF_ALLOC) {
+      break;
+    case SHT_STRTAB:
+    case SHT_NULL:
+    case SHT_RELA:
+    case SHT_REL:
+      break;
+    default:
       auto *C = new (Alloc) SectionChunk<ELFT>(this->getObj(), &Sec);
       Chunks.push_back(C);
+      break;
     }
   }
 }