From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26666 invoked by alias); 12 Apr 2003 05:43:06 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 26659 invoked from network); 12 Apr 2003 05:43:05 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 12 Apr 2003 05:43:05 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva.cipe.redhat.com [10.0.1.10]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h3C5h3V20536; Sat, 12 Apr 2003 01:43:03 -0400 Received: from free.redhat.lsd.ic.unicamp.br (free.redhat.lsd.ic.unicamp.br [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.8/8.12.8) with ESMTP id h3C5h2VT010641; Sat, 12 Apr 2003 02:43:02 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.8/8.12.8/Submit) id h3C5gw9j010637; Sat, 12 Apr 2003 02:42:58 -0300 To: Hal Black Cc: binutils@sources.redhat.com Subject: Re: [BUG] ld behavior varies for C++ static initializer depending on .a or .o input References: <3E9639F9.9050503@vt.edu> <3E978F84.4050603@vt.edu> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Sat, 12 Apr 2003 05:43:00 -0000 In-Reply-To: <3E978F84.4050603@vt.edu> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00280.txt.bz2 On Apr 12, 2003, Hal Black wrote: > Why should it be different for a .a file with the same .o files in > it? Should .a files not be used for C++? Because .o files are copied to the output, whereas .a files are used as libraries, i.e., only members that offer symbols that are being looked for are copied to the output. Can you imagine the bloat if any time you linked with a static library, all of the code in it was copied to your executables? -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer