This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: fix audit testcase with IE TLS disabled
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 22 Sep 2005 18:17:06 -0300
- Subject: Re: fix audit testcase with IE TLS disabled
- References: <20050922073022.55C11180E1E@magilla.sf.frob.com>
On Sep 22, 2005, Roland McGrath <roland@redhat.com> wrote:
>> As explained in the comment below, if we relocate ldso before setting
>> up TLS, the calloc call at the end of the self relocation will either
>> use uninitialized TLS (if libc uses IE) or crash because __tls_get_addr
>> returns NULL.
> Can you add a test case that demonstrates the failure?
elf/tst-audit1 will demonstrate the failure, but only if you build
libc without IE. I don't know how to demonstrate it otherwise.
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}