From owner-cvs-all Wed Oct 10 20: 0:19 2001 Delivered-To: cvs-all@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id ADC1837B411; Wed, 10 Oct 2001 20:00:06 -0700 (PDT) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id TAA14601; Wed, 10 Oct 2001 19:50:32 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.3/8.11.3) id f9B2oUN14807; Wed, 10 Oct 2001 19:50:30 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200110110250.f9B2oUN14807@arch20m.dellroad.org> Subject: Re: cvs commit: src/release/i386 dokern.sh In-Reply-To: <20011011100115Q.matusita@jp.FreeBSD.org> "from Makoto MATSUSHITA at Oct 11, 2001 10:01:15 am" To: Makoto MATSUSHITA Date: Wed, 10 Oct 2001 19:50:29 -0700 (PDT) Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Makoto MATSUSHITA writes: > wollman> I found that it helps a lot if you link the modules together into a > wollman> single kld (amortizing the overhead of the linker metadata over > wollman> multiple modules). Just take the *.kld (NOT *.ko) from the object > wollman> directories and link them together with `ld -Bshareable'. > > I've tried to confirm this. > > * compile all kernel modules. > * copied *.kld into single directory. > * run 'ld -Bshareable -o merged.ko *.kld'. > some modules conflicts about function definition. The > conflicted modules pair are: > if_sl/if_ppp > nfsserver/nfsclient > ng_sync_ar/if_ar > ng_sync/sr/if_sr > ng_vjc/if_ppp Some of the netgraph nodes use the same name for *static* functions. Not sure why these would cause a namespace collision. In any case, it should be easy to rename them. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message