diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 817c6c69ace8..19ac7236153b 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -710,8 +710,6 @@ void LinkerScript::output(InputSection *S) { } void LinkerScript::switchTo(OutputSection *Sec) { - if (Ctx->OutSec == Sec) - return; Ctx->OutSec = Sec; uint64_t Before = advance(0, 1);