[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Gcl-devel] Re: function addresses and ld.so



Hi, Camm Maguire wrote:

>  Therefore,
> Debian gcl/maxima/acl2 packages need a rebuild when the underlying
> shared libraries change (currently libc, libm, libreadline4,
> libncurses5, and libgmp3), at least on these architectures.

Ouch. Note that this problem also arises on systems which, for security
reasons, randomize the location libc is loaded.

It would also increase the number of packages which depend on a particular
libc version. I consider that to be a Bad Thing, as this number ideally
should be ZERO.

I would just replace all those libc calls wint an indirect jump function:

static int do_open(...) { return open(...); }
...
	image_data->open_func = do_open;

or something like that.

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
-- 
OPEN n. Abbreviation for "open (or left) parenthesis", used when
   necessary to eliminate oral ambiguity.  To read aloud the LISP form
   (DEFUN FOO (X) (PLUS X 1)) one might say: "Open def-fun foo, open
   eks close, open, plus ekx one, close close."  See CLOSE.
				-- From the AI Hackers' Dictionary



Reply to: