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)
May 6 2026, 11:22 PM
Unknown Object (File)
May 1 2026, 9:40 AM
Unknown Object (File)
Apr 28 2026, 5:38 PM
Unknown Object (File)
Apr 28 2026, 5:32 PM
Unknown Object (File)
Apr 28 2026, 3:09 PM
Unknown Object (File)
Apr 28 2026, 3:04 PM
Unknown Object (File)
Apr 27 2026, 10:23 PM
Unknown Object (File)
Apr 25 2026, 6:52 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55036
Build 51925: arc lint + arc unit