This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Support moving location counter when MEMORY is used.
ClosedPublic

Authored by grimar on Mar 2 2018, 2:05 AM.

Details

Summary

We do not expand memory region correctly for following scripts:

.foo.1 : 
 {
   *(.foo.1)
   . += 0x1000;
 } > ram

Patch generalizes expanding of output sections and memory
regions in one place and fixes the issue.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

grimar created this revision.Mar 2 2018, 2:05 AM
grimar edited reviewers, added: espindola; removed: rafael.Mar 2 2018, 6:45 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 5 2018, 2:56 AM
This revision was automatically updated to reflect the committed changes.