From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25582 invoked by alias); 22 May 2003 22:28:50 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 21757 invoked from network); 22 May 2003 22:27:10 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 22 May 2003 22:27:10 -0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9/8.12.9) with ESMTP id h4MMR8gL009558; Thu, 22 May 2003 18:27:09 -0400 (EDT) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9/8.12.9/Submit) id h4MMR7Fh009557; Thu, 22 May 2003 18:27:07 -0400 (EDT) Message-Id: <200305222227.h4MMR7Fh009557@hiauly1.hia.nrc.ca> Subject: Re: Re: speedup collect2 (by not using it) To: gcc@gcc.gnu.org Date: Thu, 22 May 2003 22:31:00 -0000 From: "John David Anglin" Cc: law@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg02041.txt.bz2 >In message <200305222040.QAA31262@makai.watson.ibm.com>, David Edelsohn writes: > >>>>>> Mike Stump writes: > > > >> does collect2 ever do anything interesting when > >> USE_COLLECT2 isn't defined and -frepo isn't given? Problem areas might > >> be IBM (COLLECT_EXPORT_LIST). If aix is a problem, we can always do > >> collect2 when COLLECT_EXPORT_LIST is defined. > > > > The GCC configuration for AIX always define use_collect2=yes > >because it needs collect2 to build the list of constructors. >Similarly for HPUX. This isn't true anymore under hpux11. On the 64-bit port, we don't use collect2. On the 32-bit port, we no longer use chatr. We now use the LD_INIT_SWITCH and LD_FINI_SWITCH macros. This has the advantage that constructors/destructors are automatically run when shared libraries are loaded/unloaded. This works with dynamic loading with shl_load. Unfortunately, we are still stuck with collect2 under hpux 10.x because the linker doesn't support the +init and +fini options. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)