Page MenuHomeFreeBSD

kldxref: Don't warn and skip file if no relocations are found
ClosedPublic

Authored by jrtc27 on Sep 2 2024, 9:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 3, 6:01 AM
Unknown Object (File)
Sun, Nov 23, 7:44 AM
Unknown Object (File)
Oct 29 2025, 12:48 PM
Unknown Object (File)
Oct 29 2025, 12:48 PM
Unknown Object (File)
Oct 29 2025, 12:47 PM
Unknown Object (File)
Oct 29 2025, 12:47 PM
Unknown Object (File)
Oct 24 2025, 12:27 PM
Unknown Object (File)
Oct 13 2025, 11:54 PM
Subscribers

Details

Summary

This case is hit for the kernel itself on riscv64, and did not used to
be checked. Since the code here can already handle missing Elf_Rel
and/or Elf_Rela just delete the check.

Fixes: 0299afdff145 ("kldxref: Make use of libelf to be a portable cross tool")
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable