Page MenuHomeFreeBSD

kldxref: handle R_RISCV_64 relocation
ClosedPublic

Authored by mhorne on Oct 18 2022, 6:13 PM.
Tags
None
Referenced Files
F166641369: D37038.id.diff
Sat, Aug 15, 3:24 AM
Unknown Object (File)
Thu, Aug 13, 7:22 PM
Unknown Object (File)
Tue, Aug 11, 10:50 PM
Unknown Object (File)
Mon, Aug 10, 6:33 PM
Unknown Object (File)
Sun, Aug 9, 9:35 PM
Unknown Object (File)
Sun, Aug 9, 9:34 PM
Unknown Object (File)
Sun, Aug 9, 2:59 AM
Unknown Object (File)
Sat, Aug 8, 8:16 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 Passed
Unit
No Test Coverage
Build Status
Buildable 47881
Build 44768: arc lint + arc unit