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)
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
Unknown Object (File)
Nov 27 2025, 3:22 PM
Unknown Object (File)
Nov 24 2025, 9:28 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