HomePhabricator

[ELF] Optimize Arm PLT sequences

Description

[ELF] Optimize Arm PLT sequences

A more efficient PLT sequence can be used when the distance between the
.plt and the end of the .plt.got is less than 128 Megabytes, which is
frequently true. We fall back to the old sequence when the offset is larger
than 128 Megabytes. This gives us an alternative to forcing the longer
entries with --long-plt as we gracefully fall back to it as needed.

See ELF for the ARM Architecture Appendix A for details of the PLT sequence.

Differential Revision: https://reviews.llvm.org/D41246

Details

Committed
psmithDec 18 2017, 6:46 AM
Differential Revision
D41246: [LLD][ELF] Optimize Arm PLT entries
Parents
rL320986: [TableGen][AsmMatcherEmitter] Only choose specific diagnostic for enabled…
Branches
Unknown
Tags
Unknown