This is an archive of the discontinued LLVM Phabricator instance.

LinkerScript: Add parsing of the MEMORY command
ClosedPublic

Authored by meadori on Mar 10 2015, 10:34 AM.

Details

Reviewers
davide
shankarke
Group Reviewers
lld
Summary

This patch implements parsing of the GNU ld MEMORY command [1].
The command and the memory block definitions are parsed as
specified (including the slightly strange "o" and "l" keywords).
Evaluation will be added at a later point in time.

[1] https://sourceware.org/binutils/docs-2.25/ld/MEMORY.html

Diff Detail

Event Timeline

meadori updated this revision to Diff 21601.Mar 10 2015, 10:34 AM
meadori retitled this revision from to LinkerScript: Add parsing of the MEMORY command.
meadori updated this object.
meadori edited the test plan for this revision. (Show Details)
meadori added a reviewer: lld.
meadori added a project: lld.
meadori added a subscriber: Unknown Object (MLST).
shankarke accepted this revision.Mar 10 2015, 11:57 AM
shankarke added a reviewer: shankarke.
shankarke added a subscriber: shankarke.

LGTM.

This revision is now accepted and ready to land.Mar 10 2015, 11:57 AM
davide added a subscriber: davide.Mar 10 2015, 9:31 PM

This looks good to me. Do you have commit access, or you want me to commit it on your behalf?

davide accepted this revision.Mar 10 2015, 9:31 PM
davide added a reviewer: davide.

I have commit access and will apply the patch shortly. Thanks for the quick review y'all.

meadori closed this revision.Apr 10 2015, 1:37 PM