[ELF2/Linkerscript] Skip semicolon in linker directives parsing.
The documentation says: "You may separate commands using semicolons",
so they seem to be optional.
Differential Revision: http://reviews.llvm.org/D13703
llvm-svn: 250223
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index fcafc66..2a63be4 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -59,6 +59,8 @@
void LinkerScript::run() {
while (!atEOF()) {
StringRef Tok = next();
+ if (Tok == ";")
+ continue;
if (Tok == "ENTRY") {
readEntry();
} else if (Tok == "GROUP" || Tok == "INPUT") {