[llvm] [JITLink][AArch32] Implement Armv5 ldr-pc stubs and use them for all pre-v7 targets (PR #79082)
Stefan Gränitz via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 03:09:54 PST 2024
================
@@ -341,6 +336,37 @@ class GOTBuilder : public TableManager<GOTBuilder> {
Section *GOTSection = nullptr;
};
+/// Stubs builder emits non-position-independent Arm stubs for pre-v7 CPUs.
+/// These architectures have no MovT/MovW instructions and don't support Thumb2.
+/// BL is the only Thumb instruction that can generate stubs and they can always
+/// be transformed into BLX.
----------------
weliveindetail wrote:
Yes, sounds reasonable. I don't have a proper hardware to test this either. Thanks!
https://github.com/llvm/llvm-project/pull/79082
More information about the llvm-commits
mailing list