This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] BZ #14545: Always check dtv before freeing dtv[-1]
On Thu, Sep 6, 2012 at 3:15 PM, Roland McGrath <roland@hack.frob.com> wrote:
> That is fine though I think making _dl_initial_dtv a macro and leaving
> the use as GL(dl_initial_dtv) is nicer.
>
I don't see how
#ifndef SHARED
# define EXTERN extern
# define GL(name) _##name
#else
#ifndef SHARED
# define _dl_initial_dtv ((void *) &_dl_static_dtv[1])
#endif
will work since GL(dl_initial_dtv)) will be expanded to
-(void *) &_dl_static_dtv[1]).
I am checking in my patch.
Thanks.
--
H.J.