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.
Details
Details
Diff Detail
Diff Detail
| Paths 
 |  Differential  D19089  
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 
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 13 2016, 6:37 PM Closed by commit rL266273: ELF: Do not create copy relocations for references in writable sections. (authored by pcc).  ·  Explain WhyApr 13 2016, 6:53 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 53649 ELF/Writer.cpp
 test/ELF/aarch64-copy.s
 test/ELF/mips-plt-copy.s
 test/ELF/relocation-copy-flags.s
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||