[ELF] INSERT [AFTER|BEFORE]: support quoted names

This commit is contained in:
Fangrui Song
2024-07-27 17:34:37 -07:00
parent d5521d1284
commit 9c16a4a2dc
3 changed files with 3 additions and 3 deletions

View File

@@ -660,7 +660,7 @@ void ScriptParser::readSections() {
isAfter = true;
else if (!consume("BEFORE"))
setError("expected AFTER/BEFORE, but got '" + next() + "'");
StringRef where = next();
StringRef where = readName();
SmallVector<StringRef, 0> names;
for (SectionCommand *cmd : v)
if (auto *os = dyn_cast<OutputDesc>(cmd))