This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Avoid GCC 4.7 optimization in elf/soinit.c
- From: Ulrich Drepper <drepper at gmail dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: libc-alpha at sources dot redhat dot com, Richard Guenther <rguenther at suse dot de>, Michael Matz <matz at suse dot de>
- Date: Sat, 29 Oct 2011 13:02:52 -0400
- Subject: Re: Avoid GCC 4.7 optimization in elf/soinit.c
- References: <201109271347.20108.aj@suse.de>
On Tue, Sep 27, 2011 at 07:47, Andreas Jaeger <aj@suse.de> wrote:
> We recently got a bug report and analysis showed that gcc 4.7 optimized
> __libc_fini and __libc_global_ctors to empty functions since it checked the
> size of __CTOR_LIST__ and does not know that glibc changes the size at link
> time.
The question is why is this code there at all? The architectures
which haven't converted have to and then this functionality will be
removed.