This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid GCC 4.7 optimization in elf/soinit.c


On Sat, 29 Oct 2011, Ulrich Drepper wrote:

> 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.

It's for backward compatibility, to be able to run old binaries.

Richard.

-- 
Richard Guenther <rguenther@suse.de>
SUSE / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746
GF: Jeff Hawn, Jennifer Guild, Felix ImendÃrffer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]