Add case for typeConstant in SectionChunk

llvm-svn: 164732
diff --git a/lld/lib/ReaderWriter/ELF/WriterELF.cpp b/lld/lib/ReaderWriter/ELF/WriterELF.cpp
index e01efd1..139f5bd 100644
--- a/lld/lib/ReaderWriter/ELF/WriterELF.cpp
+++ b/lld/lib/ReaderWriter/ELF/WriterELF.cpp
@@ -329,10 +329,16 @@
     break;
   case DefinedAtom::typeZeroFill:
     _segmentName = "PT_LOAD";
-    _sectionName = ".bss";
+    _sectionName = sectionName;
     _flags       = ELF::SHF_ALLOC | ELF::SHF_WRITE;
     _type        = ELF::SHT_NOBITS;
     break;
+  case DefinedAtom::typeConstant:
+    _segmentName = "PT_LOAD";
+    _sectionName = sectionName;
+    _flags       = ELF::SHF_ALLOC;
+    _type        = ELF::SHT_PROGBITS;
+    break;
   default:
     llvm_unreachable("Unhandled content type for section!");
   }