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)
Fri, Feb 21, 9:33 AM
Unknown Object (File)
Wed, Feb 12, 10:51 PM
Unknown Object (File)
Wed, Feb 12, 6:10 AM
Unknown Object (File)
Jan 17 2025, 6:19 PM
Unknown Object (File)
Nov 26 2024, 12:41 AM
Unknown Object (File)
Nov 17 2024, 5:24 AM
Unknown Object (File)
Nov 17 2024, 4:54 AM
Unknown Object (File)
Nov 17 2024, 2:51 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