Page MenuHomeFreeBSD

kldxref: handle R_RISCV_64 relocation
ClosedPublic

Authored by mhorne on Oct 18 2022, 6:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 16 2025, 11:03 PM
Unknown Object (File)
Nov 29 2025, 1:11 PM
Unknown Object (File)
Nov 27 2025, 3:22 PM
Unknown Object (File)
Nov 24 2025, 9:28 AM
Unknown Object (File)
Nov 24 2025, 5:56 AM
Unknown Object (File)
Nov 24 2025, 4:56 AM
Unknown Object (File)
Nov 23 2025, 8:49 PM
Unknown Object (File)
Nov 20 2025, 12:39 AM
Subscribers

Details

Summary

These are emitted in at least two kmods, and kldxref prints a warning.
While here, remove the unneeded local variable 'val'.

For reference: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#relocations

Test Plan

Before:

# kldxref /boot/kernel
kldxref: unhandled relocation type 2
kldxref: unhandled relocation type 2
kldxref: unhandled relocation type 2
kldxref: unhandled relocation type 2
kldxref: unhandled relocation type 2

After:

# kldxref /boot/kernel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable