This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Fix LMA offset calculation
ClosedPublic

Authored by evgeny777 on Mar 10 2017, 8:33 AM.

Details

Summary

Current revision has bug, which causes incorrect LMA offset calculation in section also specifies VMA, i.e:

.foo 0x5000 : AT(0x5000) { *(.bar*) }

This happens because Dot is evaluated after being passed by value to lambda expression

Diff Detail

Repository
rL LLVM

Event Timeline

evgeny777 created this revision.Mar 10 2017, 8:33 AM
ruiu accepted this revision.Mar 13 2017, 1:22 PM

LGTM

ELF/LinkerScript.cpp
561 ↗(On Diff #91356)

Please keep the blank line.

This revision is now accepted and ready to land.Mar 13 2017, 1:22 PM
This revision was automatically updated to reflect the committed changes.