summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2024-08-22 19:35:00 -0400
committerAlexander Taylor <alex@vector35.com>2024-08-22 19:35:31 -0400
commit264b8aa4bf061e84e4363e4accc0bace43ce0aa5 (patch)
tree192639e4a6f80846e2293a80e42f2486fd3aab69 /arch/riscv
parent0af300011820ba28fde1ae8da8ae5a47c1c805ca (diff)
Specialize relocation warning for 32-bit/64-bit.
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
)
}