diff options
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 2e16d563226..dadc9cae04f 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -371,10 +371,7 @@ template <class ELFT> CopyRelSection<ELFT>::CopyRelSection(bool ReadOnly, uintX_t AddrAlign, size_t S) : SyntheticSection(SHF_ALLOC, SHT_NOBITS, AddrAlign, ReadOnly ? ".bss.rel.ro" : ".bss"), - Size(S) { - if (!ReadOnly) - this->Flags |= SHF_WRITE; -} + Size(S) {} template <class ELFT> void BuildIdSection<ELFT>::writeBuildId(ArrayRef<uint8_t> Buf) { |

