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)
Sat, Oct 11, 12:37 PM
Unknown Object (File)
Sat, Oct 11, 12:37 PM
Unknown Object (File)
Sat, Oct 11, 12:37 PM
Unknown Object (File)
Sat, Oct 11, 4:27 AM
Unknown Object (File)
Sep 11 2025, 1:21 PM
Unknown Object (File)
Sep 3 2025, 7:15 AM
Unknown Object (File)
Aug 14 2025, 10:37 PM
Unknown Object (File)
Aug 10 2025, 1:01 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 Not Applicable
Unit
Tests Not Applicable