[PATCH] D34691: [LLD][ELF] Introduce range extension thunks for ARM

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 18:17:49 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/Relocations.cpp:1020
+    uint64_t TSLimit = TSBase + TS->getSize();
+    if (Target->inBranchRange(Type, Src, (Src > TSLimit) ? TSBase : TSLimit))
+      return TS;
----------------
Does this mean that this would use the upper bound if a referrer's address is greater than a thunk? Is it guaranteed that a thunk for this symbol is created within a range this way?


https://reviews.llvm.org/D34691





More information about the llvm-commits mailing list