This is an archive of the discontinued LLVM Phabricator instance.

[LLD] Add memory ORIGIN and LENGTH expression support
ClosedPublic

Authored by raidiun on May 6 2017, 2:04 AM.

Details

Summary

Adds support for the ORIGIN and LENGTH linker script built in functions.
ORIGIN(memory) Return the origin of the memory region
LENGTH(memory) Return the length of the memory region

Redo of D29775 for refactored linker script parsing

Diff Detail

Repository
rL LLVM

Event Timeline

raidiun created this revision.May 6 2017, 2:04 AM
ruiu accepted this revision.May 6 2017, 12:22 PM

LGTM

This revision is now accepted and ready to land.May 6 2017, 12:22 PM

I don't have commit access. Can someone get this for me? Thanks.

This revision was automatically updated to reflect the committed changes.