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)
May 10 2024, 3:29 PM
Unknown Object (File)
May 9 2024, 6:10 AM
Unknown Object (File)
Mar 8 2024, 6:14 AM
Unknown Object (File)
Jan 12 2024, 9:16 AM
Unknown Object (File)
Jan 4 2024, 5:01 AM
Unknown Object (File)
Dec 22 2023, 10:52 PM
Unknown Object (File)
Dec 7 2023, 9:10 PM
Unknown Object (File)
Dec 3 2023, 2:32 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