diff options
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
| -rw-r--r-- | lld/ELF/ScriptParser.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 6f0dd879a2d..fdeeafd39fc 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -175,22 +175,9 @@ static ExprValue bitOr(ExprValue A, ExprValue B) { void ScriptParser::readDynamicList() { expect("{"); - std::vector<SymbolVersion> Locals; - std::vector<SymbolVersion> Globals; - std::tie(Locals, Globals) = readSymbols(); - expect(";"); - - if (!atEOF()) { + readAnonymousDeclaration(); + if (!atEOF()) setError("EOF expected, but got " + next()); - return; - } - if (!Locals.empty()) { - setError("\"local:\" scope not supported in --dynamic-list"); - return; - } - - for (SymbolVersion V : Globals) - Config->DynamicList.push_back(V); } void ScriptParser::readVersionScript() { |

