cvs commit: src/sys/kern link_elf_obj.c
peter at FreeBSD.org
Fri Apr 30 09:32:42 PDT 2004
peter 2004/04/30 09:32:40 PDT
FreeBSD src repository
Checkpoint commit for an alternative WIP kernel module loader that isn't
as dependent on binutils features/quirks as the current one. This one
loads plain .o files without having to mess with shared object mode.
This happens to be essential on amd64, because binutils hasn't implemented
all the quirks/features that we need for producing the hack non-PIC shared
objects. As it turned out, .o format isn't all that inconvenient after
all. It looks like the ability to use the same .o files for linking
directly into a static kernel or loading as a module might be worth it.
It is still very much a work-in-progress, but it is almost usable. Other
changes are still needed in order to use it though, these have not been
committed yet. There is still a memory corruption/overrun bug somewhere.
For example, test modules load and work, but the machine explodes a few
minutes later in vm_forkproc() or the like. Notable missing things
include kldxref support, and loader(8) support. I wanted to figure out
a working baseline set of code first.
Revision Changes Path
1.77 +697 -1060 src/sys/kern/link_elf_obj.c
More information about the cvs-src