Date: Mon, 17 Oct 2005 23:21:55 +0000 (UTC) From: Peter Wemm <peter@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern link_elf.c Message-ID: <200510172321.j9HNLtNJ013650@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510172321.j9HNLtNJ013650>