Page MenuHomeFreeBSD

kldxref: Simplify handling of ELF object files
ClosedPublic

Authored by jhb on Dec 19 2023, 8:15 PM.
Tags
None
Referenced Files
F154483335: D43126.id131733.diff
Tue, Apr 28, 5:38 PM
F154481675: D43126.id131733.diff
Tue, Apr 28, 5:32 PM
F154446646: D43126.id131593.diff
Tue, Apr 28, 3:09 PM
F154446187: D43126.id131593.diff
Tue, Apr 28, 3:04 PM
F154334869: D43126.id.diff
Mon, Apr 27, 10:23 PM
Unknown Object (File)
Sat, Apr 25, 6:52 AM
Unknown Object (File)
Mon, Apr 20, 6:00 PM
Unknown Object (File)
Sun, Apr 19, 2:25 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