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)
Mon, Nov 24, 9:28 AM
Unknown Object (File)
Mon, Nov 24, 5:56 AM
Unknown Object (File)
Mon, Nov 24, 4:56 AM
Unknown Object (File)
Sun, Nov 23, 8:49 PM
Unknown Object (File)
Thu, Nov 20, 12:39 AM
Unknown Object (File)
Tue, Nov 18, 7:42 AM
Unknown Object (File)
Mon, Nov 3, 9:42 PM
Unknown Object (File)
Mon, Nov 3, 9:41 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