diff options
| author | Sid Manning <sidneym@codeaurora.org> | 2012-09-26 22:46:17 +0000 |
|---|---|---|
| committer | Sid Manning <sidneym@codeaurora.org> | 2012-09-26 22:46:17 +0000 |
| commit | d3a7e7e164ce8b95939b0c468c31597e2d33c1a4 (patch) | |
| tree | e66b7551824d94415bc2224de65657a3862a5639 /lld/lib/ReaderWriter/ELF/WriterELF.cpp | |
| parent | 2e646236fbf6b12a5d3721fc4116ad47c06c99cd (diff) | |
| download | bcm5719-llvm-d3a7e7e164ce8b95939b0c468c31597e2d33c1a4.tar.gz bcm5719-llvm-d3a7e7e164ce8b95939b0c468c31597e2d33c1a4.zip | |
Add case for typeConstant in SectionChunk
llvm-svn: 164732
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/WriterELF.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/WriterELF.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/WriterELF.cpp b/lld/lib/ReaderWriter/ELF/WriterELF.cpp index e01efd11c88..139f5bd4a5b 100644 --- a/lld/lib/ReaderWriter/ELF/WriterELF.cpp +++ b/lld/lib/ReaderWriter/ELF/WriterELF.cpp @@ -329,10 +329,16 @@ SectionChunk<target_endianness, is64Bits>:: 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!"); } |

