Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 1998 03:35:36 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        mike@smith.net.au
Cc:        current@FreeBSD.ORG
Subject:   Re: ppp libalias
Message-ID:  <199806050735.DAA17278@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> > > Brandon Lockhart  <brandon@engulf.net> 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



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