Skip to content

Commit

Permalink
Specialize relocation warning for 32-bit/64-bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzyll committed Aug 22, 2024
1 parent 0af3000 commit 264b8aa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions arch/riscv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down

0 comments on commit 264b8aa

Please sign in to comment.