[llvm-commits] [lld] r164732 - /lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
Sid Manning
sidneym at codeaurora.org
Wed Sep 26 15:46:17 PDT 2012
Author: sidneym
Date: Wed Sep 26 17:46:17 2012
New Revision: 164732
URL: http://llvm.org/viewvc/llvm-project?rev=164732&view=rev
Log:
Add case for typeConstant in SectionChunk
Modified:
lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp?rev=164732&r1=164731&r2=164732&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp Wed Sep 26 17:46:17 2012
@@ -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!");
}
More information about the llvm-commits
mailing list