This is an archive of the discontinued LLVM Phabricator instance.

ELF: Do not create copy relocations for references in writable sections.
ClosedPublic

Authored by pcc on Apr 13 2016, 6:27 PM.

Details

Summary

They are unnecessary, as the dynamic loader can apply the original relocations
directly. This was also resulting in the creation of copy relocations in PIEs.

Diff Detail

Event Timeline

pcc updated this revision to Diff 53649.Apr 13 2016, 6:27 PM
pcc retitled this revision from to ELF: Do not create copy relocations for references in writable sections..
pcc updated this object.
pcc added reviewers: rafael, ruiu.
pcc added a subscriber: llvm-commits.
ruiu accepted this revision.Apr 13 2016, 6:37 PM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 13 2016, 6:37 PM
This revision was automatically updated to reflect the committed changes.