mirror of
https://github.com/encounter/object.git
synced 2026-07-10 12:18:39 -07:00
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:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user