[PATCH] D41246: [LLD][ELF] Optimize Arm PLT entries

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 09:12:52 PST 2017


peter.smith updated this revision to Diff 127147.
peter.smith added a comment.

I've implemented the suggestion to choose the form of PLT entry based on whether the offset to the .got.plt can be represented by the shorter encoding. To maintain 16-byte alignment of the entries I've increased the size of the header to 32-bytes. As the --long-plt doesn't do anything any more I've updated all the tests to use the new encoding. Apologies for the size of the diff.


https://reviews.llvm.org/D41246

Files:
  ELF/Arch/ARM.cpp
  test/ELF/arm-branch-undef-weak-plt-thunk.s
  test/ELF/arm-exidx-shared.s
  test/ELF/arm-gnu-ifunc-plt.s
  test/ELF/arm-gnu-ifunc.s
  test/ELF/arm-plt-reloc.s
  test/ELF/arm-thumb-interwork-shared.s
  test/ELF/arm-thumb-plt-range-thunk-os.s
  test/ELF/arm-thumb-plt-reloc.s
  test/ELF/arm-thunk-re-add.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41246.127147.patch
Type: text/x-patch
Size: 45887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171215/b05bd746/attachment-0001.bin>


More information about the llvm-commits mailing list