cvs commit: src/sys/kern link_elf.c
Peter Wemm
peter at FreeBSD.org
Mon Oct 17 16:21:56 PDT 2005
peter 2005-10-17 23:21:55 UTC
FreeBSD src repository
Modified files:
sys/kern link_elf.c
Log:
Add support for kernel modules with a single PT_LOAD section.
While here, support up to four sections because it was trivial to do
and cheap. (One pointer per section).
For amd64 with "-fpic -shared" format .ko files, using a single PT_LOAD
section is important to avoid wasting about 1MB of KVM and physical ram
for the 'gap' between the two PT_LOAD sections. amd64 normally uses
.o format kld files and isn't affected normally. But -fpic -shared modules
are actually possible to produce and load... (And with a bugfix to
binutils, we can build and use plain -shared .ko files without -fpic)
i386 only wastes 4K per .ko file, so that isn't such a big deal there.
Revision Changes Path
1.85 +9 -6 src/sys/kern/link_elf.c
More information about the cvs-src
mailing list