[PATCH] HPPA/IA64 : Don't use broken DL_AUTO_FUNCTION_ADDRESS()
Guy Martin
gmsoft@tuxicoman.be
Fri Oct 18 12:04:00 GMT 2013
On 2013-10-18 12:30, Andreas Schwab wrote:
> Guy Martin <gmsoft@tuxicoman.be> writes:
>
>> To prevent this, we use instead the existing macro
>> DL_STATIC_FUNCTION_ADDRESS() which is identical to
>> DL_AUTO_FUNCTION_ADDRESS() but declares fptr as static.
>
> Can the callers ever be reentered?
AFAICS, it can't. The macro using DL_STATIC_FUNCTION_ADDRESS() are
DL_DT_INIT_ADDRESS() which is only used in dl-init.c and
DL_DT_FINI_ADDRESS() used in dl-fini.c and dl-close.c.
The only case where this might possibly be reentered would be parallel
calls of dlopen()/dlclose(). I'm not even sure those calls are supposed
to be thread safe.
Guy
More information about the Libc-alpha
mailing list