Page MenuHomeFreeBSD

kldxref: Simplify handling of ELF object files
ClosedPublic

Authored by jhb on Dec 19 2023, 8:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 3:11 PM
Unknown Object (File)
Tue, Nov 25, 8:56 PM
Unknown Object (File)
Sat, Nov 8, 2:34 AM
Unknown Object (File)
Thu, Nov 6, 4:55 AM
Unknown Object (File)
Wed, Nov 5, 7:11 PM
Unknown Object (File)
Nov 5 2025, 5:20 PM
Unknown Object (File)
Nov 5 2025, 3:22 PM
Unknown Object (File)
Nov 1 2025, 9:15 PM
Subscribers

Details

Summary

Unlike the backend for ELF DSOs, the object file backend allocated an
aligned chunk of memory and read all of the in-memory sections from
the file into this memory even though most of the file contents were
never used. Instead, just track a set of virtual addresses (based at
0) that each loaded section would be loaded at and only read the
necessary bits from the backing file when needed.

Sponsored by: DARPA

Diff Detail

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