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, Jan 17, 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
Unknown Object (File)
Oct 26 2024, 10:26 AM
Unknown Object (File)
Oct 10 2024, 11:09 AM
Unknown Object (File)
Sep 28 2024, 9:26 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