From owner-freebsd-current Fri Jun 5 00:36:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA27217 for freebsd-current-outgoing; Fri, 5 Jun 1998 00:36:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA27184 for ; Fri, 5 Jun 1998 00:36:11 -0700 (PDT) (envelope-from luoqi@lor.watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id DAA17278; Fri, 5 Jun 1998 03:35:36 -0400 (EDT) (envelope-from luoqi) Date: Fri, 5 Jun 1998 03:35:36 -0400 (EDT) From: Luoqi Chen Message-Id: <199806050735.DAA17278@lor.watermarkgroup.com> To: mike@smith.net.au Subject: Re: ppp libalias Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Brandon Lockhart wrote: > > > > > > > I remember there was a discussion, I didn't think this pertained to me. > > > > How do we fix this ppp libalias problem? > > > > > > The easiest work-around is to create a symlink "/usr/lib/libalias.so.2.5" > > > that points to "/usr/lib/aout/libalias.so.2.5". > > > > I don't see any compelling reason why dynamic loading is really needed. > > IMHO, this is just a bad programming practice. > > Plenty of good reasons, most of them related to size. Could you be more specific? I don't quite understand. The library itself is not big, 6 pages (5 text, 1 data, excluding 4 pages of bss). If you don't use the -alias option, text and bss will not be touched, and you will waste 1 page of data (modified by relocation). If you use the -alias option, then the memory usage should be the same. We might end up saving some space if the code to load and unload the library is removed and let ld.so do the job during startup. > > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ msmith@cdrom.com -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message