LoongArch64: adjust relocation constants based on spec (#827)

Link to spec:
https://github.com/loongson/la-abi-specs/blob/release/laelf.adoc#relocations
This commit is contained in:
Martin Liška
2025-12-20 03:13:58 -08:00
committed by GitHub
parent c5b0198c01
commit 68dbd7f3cb
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -3262,6 +3262,8 @@ const FLAGS_R_LOONGARCH: &[Flag<u32>] = &flags!(
R_LARCH_TLS_TPREL32,
R_LARCH_TLS_TPREL64,
R_LARCH_IRELATIVE,
R_LARCH_TLS_DESC32,
R_LARCH_TLS_DESC64,
R_LARCH_MARK_LA,
R_LARCH_MARK_PCREL,
R_LARCH_SOP_PUSH_PCREL,
+4
View File
@@ -6049,6 +6049,10 @@ pub const R_LARCH_TLS_TPREL32: u32 = 10;
pub const R_LARCH_TLS_TPREL64: u32 = 11;
/// Runtime local indirect function resolving
pub const R_LARCH_IRELATIVE: u32 = 12;
/// Runtime relocation for TLS descriptors
pub const R_LARCH_TLS_DESC32: u32 = 13;
/// Runtime relocation for TLS descriptors
pub const R_LARCH_TLS_DESC64: u32 = 14;
/// Mark la.abs: load absolute address for static link.
pub const R_LARCH_MARK_LA: u32 = 20;
/// Mark external label branch: access PC relative address for static link.