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, Oct 26, 10:26 AM
Unknown Object (File)
Oct 10 2024, 11:09 AM
Unknown Object (File)
Sep 28 2024, 9:26 PM
Unknown Object (File)
Sep 28 2024, 9:25 PM
Unknown Object (File)
Sep 27 2024, 7:13 PM
Unknown Object (File)
Sep 26 2024, 11:38 AM
Unknown Object (File)
Sep 25 2024, 4:30 PM
Unknown Object (File)
Sep 23 2024, 9:09 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