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)
Mon, Oct 13, 11:54 PM
Unknown Object (File)
Mon, Oct 13, 11:53 PM
Unknown Object (File)
Mon, Oct 13, 11:53 PM
Unknown Object (File)
Mon, Oct 13, 10:24 AM
Unknown Object (File)
Thu, Oct 2, 11:57 PM
Unknown Object (File)
Thu, Sep 25, 12:50 AM
Unknown Object (File)
Sep 11 2025, 10:42 PM
Unknown Object (File)
Sep 8 2025, 6:56 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