This is an archive of the discontinued LLVM Phabricator instance.

Add a WriteAddends config variable
ClosedPublic

Authored by espindola on Feb 5 2018, 11:49 AM.

Details

Reviewers
ruiu
Summary

This is the same idea for having

Config->CopyRelocs = (Config->Relocatable || Config->EmitRelocs);

it is easier IMHO to read this closer to where the other Config variables are set then in the middle of the dynamic relocation processing code.

Diff Detail

Event Timeline

espindola created this revision.Feb 5 2018, 11:49 AM
ruiu accepted this revision.Feb 5 2018, 12:32 PM

LGTM

This revision is now accepted and ready to land.Feb 5 2018, 12:32 PM
ruiu added inline comments.Feb 5 2018, 12:34 PM
ELF/Driver.cpp
824

I think you can now remove ApplyDynamicRelocs from Config because it's now being used only by the driver.