A completely different approach to EH runtime
Zack Weinberg
zackw@Stanford.EDU
Fri Feb 23 18:16:00 GMT 2001
On Fri, Feb 23, 2001 at 02:31:12PM -0800, Richard Henderson wrote:
> On Fri, Feb 23, 2001 at 01:53:25PM -0800, Zack Weinberg wrote:
> > Put a global symbol _in the executable_ which the libgcc
> > routines look for.
>
> A good idea ...
>
> > Except that there are funnies with whether or not symbols in the
> > executable are visible to dynamically loaded objects. Drat.
>
> ... except for this small detail. :-/
Hm. ld(1) says
-export-dynamic
When creating an ELF file, add all symbols to the
dynamic symbol table. Normally, the dynamic symbol
table contains only symbols which are used by a dy-
namic object. This option is needed for some uses
of dlopen.
That implies, to me, that there might be a way to force just one
symbol into the dynamic symbol table. I know very little about this.
Worst case (in ELF), couldn't we bodge an entry into .dynsym by hand?
zw
More information about the Gcc
mailing list