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, Apr 18, 7:27 AM
Unknown Object (File)
Fri, Apr 17, 8:58 PM
Unknown Object (File)
Fri, Apr 17, 7:58 PM
Unknown Object (File)
Fri, Apr 17, 1:33 PM
Unknown Object (File)
Fri, Apr 17, 1:26 PM
Unknown Object (File)
Wed, Apr 15, 8:02 PM
Unknown Object (File)
Fri, Apr 10, 12:18 PM
Unknown Object (File)
Mon, Apr 6, 2:11 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