summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/src/lib.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/riscv/src/lib.rs b/arch/riscv/src/lib.rs
index 725177ca..aaeed66d 100644
--- a/arch/riscv/src/lib.rs
+++ b/arch/riscv/src/lib.rs
@@ -2337,10 +2337,19 @@ impl<D: 'static + RiscVDisassembler + Send + Sync> RelocationHandler
reloc.size = 2;
reloc.truncate_size = 2;
}
- Self::R_RISCV_TLS_TPREL32 | Self::R_RISCV_TLS_TPREL64 => {
+ Self::R_RISCV_TLS_TPREL32 => {
reloc.type_ = RelocationType::UnhandledRelocation;
log::warn!(
- "Unhandled relocation type R_RISCV_TLS_TPREL at {:x?}",
+ "Unhandled relocation type {:?} (R_RISCV_TLS_TPREL32) at {:x?}",
+ reloc.native_type,
+ reloc.address
+ )
+ }
+ Self::R_RISCV_TLS_TPREL64 => {
+ reloc.type_ = RelocationType::UnhandledRelocation;
+ log::warn!(
+ "Unhandled relocation type {:?} (R_RISCV_TLS_TPREL64) at {:x?}",
+ reloc.native_type,
reloc.address
)
}