[PATCH 1/5][v2][BZ #15022] Avoid repeated calls to DL_STATIC_INIT
H.J. Lu
hjl.tools@gmail.com
Thu Jun 20 11:21:00 GMT 2013
On Wed, Jun 19, 2013 at 4:31 PM, Roland McGrath <roland@hack.frob.com> wrote:
> It seems fine to me. If HJ can explain the rationale for it being any
> other way in the first place, then we'll have to reconsider.
>
> This affects only mips and ia64. Their uses are nearly identical so it
> seems unlikely it would break ia64 when you've tested mips. But prudence
> suggests letting the ia64 maintainer (or whoever else) test and confirm.
>
>
DL_STATIC_INIT is used to initialize variables in ld.so from
static binaries::
http://www.sourceware.org/ml/libc-alpha/2001-01/msg00110.html
The difference between calling from dl_open_worker
and _dl_open is nested locks, which may be a problem.
--
H.J.
More information about the Libc-alpha
mailing list