This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [BUG] ld behavior varies for C++ static initializer depending on .a or .o input
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Hal Black <hablack at vt dot edu>
- Cc: binutils at sources dot redhat dot com
- Date: 11 Apr 2003 01:47:47 -0300
- Subject: Re: [BUG] ld behavior varies for C++ static initializer depending on .a or .o input
- Organization: GCC Team, Red Hat
- References: <3E9639F9.9050503@vt.edu>
On Apr 11, 2003, Hal Black <hablack at vt dot edu> wrote:
> But when linking .a files composed
> of those .o files, static initializers are not called.
And, if you look closer, you'll notice the object files that contain
the initializers aren't linked in at all. Which is perfectly fine,
given that no symbols from it are referenced. Maybe you want
--whole-archive?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer