[PATCH] D141272: [lld][ARM] support position independent thunks for Armv4(T)

Ties Stuij via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 03:11:12 PST 2023


stuij created this revision.
Herald added subscribers: kristof.beyls, arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added a project: All.
stuij requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- Position independent thunks now work for both Armv4 and Armv4T
- Armv4 arm->arm thunks don't emit a BX anymore, which doesn't exist for the arch. This fixes https://github.com/llvm/llvm-project/issues/50764.
- Armv4 and Armv4T both have the same arm->arm behaviour. Which also is desirable for the above ticket.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141272

Files:
  lld/ELF/Thunks.cpp
  lld/test/ELF/arm-bl-v4.s
  lld/test/ELF/arm-bl-v4t.s
  lld/test/ELF/arm-bx-v4t.s
  lld/test/ELF/arm-thumb-interwork-thunk-v5.s
  lld/test/ELF/arm-thunk-multipass-plt.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141272.487366.patch
Type: text/x-patch
Size: 19080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230109/9c0dbe3e/attachment.bin>


More information about the llvm-commits mailing list