[lld] [lld] Add thunks for hexagon (PR #111217)
Brian Cain via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 08:26:10 PST 2024
================
@@ -351,6 +351,21 @@ class AVRThunk : public Thunk {
void addSymbols(ThunkSection &isec) override;
};
+// Hexagon CPUs need thunks for <<FIXME TBD>>
+// when their destination is out of range [0, 0x_?].
+class HexagonThunk : public Thunk {
+public:
+ HexagonThunk(Ctx &ctx, const InputSection &isec, Relocation &rel,
+ Symbol &dest)
+ : Thunk(ctx, dest, 0), RelOffset(rel.offset) {
+ alignment = 4;
+ }
+ uint32_t RelOffset;
----------------
androm3da wrote:
fixed.
https://github.com/llvm/llvm-project/pull/111217
More information about the llvm-commits
mailing list