diff options
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!"); } |

