Page MenuHomeFreeBSD

kldxref: handle R_RISCV_64 relocation
ClosedPublic

Authored by mhorne on Oct 18 2022, 6:13 PM.
Tags
None
Referenced Files
F149706747: D37038.id.diff
Thu, Mar 26, 9:44 AM
F149666178: D37038.diff
Thu, Mar 26, 2:56 AM
Unknown Object (File)
Wed, Mar 18, 6:48 PM
Unknown Object (File)
Wed, Mar 18, 6:42 PM
Unknown Object (File)
Mon, Mar 9, 2:20 PM
Unknown Object (File)
Feb 9 2026, 12:00 PM
Unknown Object (File)
Dec 16 2025, 11:03 PM
Unknown Object (File)
Nov 29 2025, 1:11 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 47881
Build 44768: arc lint + arc unit