mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
LLD patch: allow non-allocated sections to go into allocated sections
Patch submitted upstream: https://reviews.llvm.org/D55276
This commit is contained in:
parent
3a1612a0f5
commit
9ac838c8e3
2
deps/lld/ELF/OutputSections.cpp
vendored
2
deps/lld/ELF/OutputSections.cpp
vendored
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user