[lld] [lld] Add thunks for hexagon (PR #111217)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 19:31:45 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;
----------------
MaskRay wrote:
lowercase
https://github.com/llvm/llvm-project/pull/111217
More information about the llvm-commits
mailing list