From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30055 invoked by alias); 13 Apr 2003 23:26:10 -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 30047 invoked from network); 13 Apr 2003 23:26:08 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 13 Apr 2003 23:26:08 -0000 Received: from redhat.com (myware.akkadia.org [192.168.7.70]) (authenticated bits=0) by myware.akkadia.org (8.12.8/8.12.5) with ESMTP id h3DNPlck030065; Sun, 13 Apr 2003 16:25:48 -0700 Message-ID: <3E99F1FB.1030008@redhat.com> Date: Sun, 13 Apr 2003 23:26:00 -0000 From: Ulrich Drepper Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030412 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zack Weinberg CC: binutils@sources.redhat.com, black@ieee.org 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> <3E98219D.7010506@ieee.org> <3E98546A.9060507@ieee.org> <87he92ngiz.fsf@egil.codesourcery.com> In-Reply-To: <87he92ngiz.fsf@egil.codesourcery.com> X-Enigmail-Version: 0.74.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00299.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Zack Weinberg wrote: > I'd like to point out that while this is true for static (.a) > libraries, it is not true for shared (.so) libraries -- the linker > generates DT_NEEDED entries for every shared library on the command > line, whether or not they satisfy undefined symbols. Personally I > consider this a bug. Agreed, I argued like that for years. If somebody wants the DSO included s/he can use -u to create and artificial dependency. - -- - --------------. ,-. 444 Castro Street Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA Red Hat `--' drepper at redhat.com `--------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+mfH72ijCOnn/RHQRAtHmAKCnq3OcfkKWRnvmmZI9cyTLCzkeGgCfej6g ZErCJSskzy+8TJD3Ld+CWos= =9jUv -----END PGP SIGNATURE-----