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.
Paths
| Differential D42927
Add a WriteAddends config variable ClosedPublic Authored by • espindola on Feb 5 2018, 11:49 AM.
Details
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 TimelineThis revision is now accepted and ready to land.Feb 5 2018, 12:32 PM
Revision Contents
Diff 132874 ELF/Config.h
ELF/Driver.cpp
ELF/SyntheticSections.cpp
|
I think you can now remove ApplyDynamicRelocs from Config because it's now being used only by the driver.