On Fri, Sep 29, 2006 at 07:50:21AM -0300, Rafael Esp?ndola wrote:
> Running some tests on qemu I sometimes hit the assertion
> _dl_start_final: Assertion `info->l.l_tls_modid == 0'
> I initially thought that it was a bug in qemu, but investigating
> further showed that bootstrap_map.l_tls_modid was stack allocated but
> not initialized.
> The attached patch initializes it to 0. The bug is a bit hard to
> reproduce, but it can be done by initializing l_tls_modid to another
I'd prefer not to waste runtime cycles just so that something can
be asserted. If !USE___THREAD in rtld.c (currently always), then we really
don't need it for anything in bootstrap_map (and it is already zero
initialized in GL(dl_rtld_map)).