This is an archive of the discontinued LLVM Phabricator instance.

Make sure to include the constant offset when creating a cross-section relative relocation.
ClosedPublic

Authored by AndyAyers on May 11 2015, 5:42 PM.

Details

Summary

If an initializer expression is of the form &A - &B + C, where A and B are symbols and C is a constant, and A and B are in different coff sections, the value C is lost when translating this to a relocation.

Diff Detail

Repository
rL LLVM

Event Timeline

AndyAyers updated this revision to Diff 25536.May 11 2015, 5:42 PM
AndyAyers retitled this revision from to Make sure to include the constant offset when creating a cross-section relative relocation..
AndyAyers updated this object.
AndyAyers edited the test plan for this revision. (Show Details)
AndyAyers added a reviewer: majnemer.
AndyAyers set the repository for this revision to rL LLVM.
AndyAyers added a subscriber: Unknown Object (MLST).
majnemer accepted this revision.May 11 2015, 6:48 PM
majnemer edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 11 2015, 6:48 PM
This revision was automatically updated to reflect the committed changes.