From 9ac838c8e3f5c3e77533e30f72bac30487b9ae23 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 4 Dec 2018 11:42:22 -0500 Subject: [PATCH] LLD patch: allow non-allocated sections to go into allocated sections Patch submitted upstream: https://reviews.llvm.org/D55276 --- deps/lld/ELF/OutputSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/lld/ELF/OutputSections.cpp b/deps/lld/ELF/OutputSections.cpp index 8253b18b48..9dd8bba266 100644 --- a/deps/lld/ELF/OutputSections.cpp +++ b/deps/lld/ELF/OutputSections.cpp @@ -95,7 +95,7 @@ void OutputSection::addSection(InputSection *IS) { Flags = IS->Flags; } else { // Otherwise, check if new type or flags are compatible with existing ones. - unsigned Mask = SHF_ALLOC | SHF_TLS | SHF_LINK_ORDER; + unsigned Mask = SHF_TLS | SHF_LINK_ORDER; if ((Flags & Mask) != (IS->Flags & Mask)) error("incompatible section flags for " + Name + "\n>>> " + toString(IS) + ": 0x" + utohexstr(IS->Flags) + "\n>>> output section " + Name +