From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: hjl@lucon.org Cc: law@cygnus.com, egcs@egcs.cygnus.com, egcs-patches@egcs.cygnus.com Subject: Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1 Date: Sun, 28 Feb 1999 22:53:00 -0000 Message-ID: <199902202335.AAA06542@mira.isdn.cs.tu-berlin.de> References: X-SW-Source: 1999-02n/msg01002.html Message-ID: <19990228225300.Z7nilqvwSkepOjhIcZ5HUVclvLGD9NGht-cWUtWFgpU@z> > * decl2.c (start_objects): Make file scope constructors and > destructors local to the file if ASM_OUTPUT_CONSTRUCTOR and > ASM_OUTPUT_DESTRUCTOR are defined. This is incorrect. Please look at config/aoutos.h. It always defines ASM_OUTPUT_CONSTRUCTOR, but then decides, at runtime, whether to use GNU binutils. If GNU ld is not used, no __CTOR_LIST__ is constructed, and collect2 would have to find constructors. Now that you made them static, this would fail. Regards, Martin