Revert r311468: If --dynamic-list is given, only those symbols are preemptible

This reverts commit r311468 because it broke some CFI bots.

llvm-svn: 311497
This commit is contained in:
Rui Ueyama
2017-08-22 21:54:58 +00:00
parent c5e7cee0a2
commit e158f7c329
6 changed files with 4 additions and 105 deletions

View File

@@ -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() {