This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1



>         * 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