gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] Re: ia64 function descriptors and unexec


From: Andreas Schwab
Subject: Re: [Gcl-devel] Re: ia64 function descriptors and unexec
Date: Sat, 01 Nov 2003 01:31:59 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

[removing emacs-devel from cc: since it's off-topic there.]

Camm Maguire <address@hidden> writes:

> Far better than trying to probe ld.so's function descriptor table, I
> should rather ammend the lisp compiler to write a static function
> structure into each produced C source file before compilation, with the
> structure's pointer element statically initialized to the static
> function in the same file.  I then use the address for this structure at
> runtime in setting the lisp symbol's function definition.  This should
> work, right?

I have rechecked the specs, and actually the key point isn't static
vs. dynamic assignment, but rather local vs. dynamic symbols.  A function
descriptor for a symbol in a shared library will be allocated by the
dynamic linker, whereas those for symbols in the executable are allocated
by the static linker.  So you only have to make sure that all function
pointers in the executable only refer to functions therein.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]