Ethereal-dev: Re: [Ethereal-dev] Turning on kerberos/heimdal by default

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 24 May 2004 09:09:41 -0700
On Mon, May 24, 2004 at 10:54:24AM +0200, Thomas Anders wrote:
> My biggest concern (initially raised by Ronnie) is that all Heimdal
> libraries are currently linked into libethereal rather than just
> into the final executables (e.g. [t]ethereal). Can't/shouldn't we
> change this?
> 
> OTOH, since Heimdal libs are usually static and libethereal is shared,
> there may be some memory savings with the current approach.

At least on some platforms:

	1) non-position-independent code in shared libraries is not, in
	   fact, shared - the code will be relocated at program start-up
	   time, and that code will be copied-on-write, so that each
	   process using the library will have its own relocated copy;

	2) by default, code is *not* compiled as position-independent;

so that static libraries don't contain PIC and, if that code is linked
into a shared library, the pages containing that code won't be shared.

If so, you probably won't get any memory savings for Heimdal code built
into libethereaol.