This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- To: martin at mira dot isdn dot cs dot tu-berlin dot de (Martin v. Loewis)
- Subject: Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sat, 20 Feb 1999 16:11:03 -0800 (PST)
- Cc: law at cygnus dot com, egcs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
>
> > * 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.
>
That is bogus. Please take a look at how ASM_OUTPUT_CONSTRUCTOR is
used. If ASM_OUTPUT_CONSTRUCTOR is not defined, egcs will check whether
to use the gnu linker. Why does config/aoutos.h to have duplicate
what is in the egcs backend?
--
H.J. Lu (hjl@gnu.org)