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
- Repository
- rL LLVM
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 53652 lld/trunk/ELF/Writer.cpp
lld/trunk/test/ELF/aarch64-copy.s
lld/trunk/test/ELF/mips-plt-copy.s
lld/trunk/test/ELF/relocation-copy-flags.s
lld/trunk/test/ELF/relocation-copy-non-alloc.s
|