This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Linkerscript: accept space between '=' and expression in section filler.
ClosedPublic

Authored by grimar on Sep 22 2016, 9:35 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 72183.Sep 22 2016, 9:35 AM
grimar retitled this revision from to [ELF] - Linkerscript: accept space between '=' and expression in section filler..
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
ruiu added inline comments.Sep 22 2016, 10:49 AM
ELF/LinkerScript.cpp
1220 ↗(On Diff #72183)

Probably this is better.

if (skip("="))
  Cmd->Filler = next();
else if (peek().startswith("="))
  Cmd->Filler = readOutputSectionFiller(next().drop_front());
grimar updated this revision to Diff 72237.Sep 23 2016, 12:44 AM
grimar updated this object.
  • Addressed review comments.
This revision was automatically updated to reflect the committed changes.
ruiu edited edge metadata.Sep 23 2016, 11:05 AM

LGTM.

You probably cannot make the lexer split '=' as a separate token because that can be used in filenames.