diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 0febb253149..646dbbd9500 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1275,8 +1275,12 @@ ScriptParser::readOutputSectionDescription(StringRef OutSec) { setError("unknown command " + Tok); } Cmd->Phdrs = readOutputSectionPhdrs(); - if (peek().startswith("=")) + + if (skip("=")) + Cmd->Filler = readOutputSectionFiller(next()); + else if (peek().startswith("=")) Cmd->Filler = readOutputSectionFiller(next().drop_front()); + return Cmd; } |

