Index: ELF/LinkerScript.cpp =================================================================== --- ELF/LinkerScript.cpp +++ ELF/LinkerScript.cpp @@ -416,8 +416,7 @@ void LinkerScript::discard(ArrayRef V) { for (InputSection *S : V) { if (S == In.ShStrTab || S == In.Dynamic || S == In.DynSymTab || - S == In.DynStrTab || S == In.RelaPlt || S == In.RelaDyn || - S == In.RelrDyn) + S == In.DynStrTab || S == In.RelaDyn || S == In.RelrDyn) error("discarding " + S->Name + " section is not allowed"); // You can discard .hash and .gnu.hash sections by linker scripts. Since