Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 19:50:29 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/release/i386 dokern.sh
Message-ID:  <200110110250.f9B2oUN14807@arch20m.dellroad.org>
In-Reply-To: <20011011100115Q.matusita@jp.FreeBSD.org> "from Makoto MATSUSHITA at Oct 11, 2001 10:01:15 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110110250.f9B2oUN14807>