diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index a2e7a527081b..22b8ff3fd821 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1494,7 +1494,8 @@ ScriptParser::readOutputSectionDescription(StringRef OutSec) { while (!Error && !consume("}")) { StringRef Tok = next(); if (Tok == ";") { - // Empty commands are allowed. Do nothing here. + // Commands may contain excessive additional semicolons around. + // We should be able to parse it. } else if (SymbolAssignment *Assignment = readProvideOrAssignment(Tok)) { Cmd->Commands.emplace_back(Assignment); } else if (BytesDataCommand *Data = readBytesDataCommand(Tok)) {