https://sourceware.org/bugzilla/show_bug.cgi?id=18698

Cary Coutant <ccoutant at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ccoutant at gmail dot com

--- Comment #1 from Cary Coutant <ccoutant at gmail dot com> ---
> Where is the proper place for initialization?

gold doesn't set the target until it sees its first object file. In the case of
an archive library as the first parameter, we have no way of knowing what the
default entry point should be (because the entry point symbol is target
specific).

Parameters::entry() should first check that target has been set, and if not,
simply return NULL.

Library_base::should_include_member() should check for NULL, and either skip
the check for the entry symbol, or print a warning that the -e option should be
used when there is no startup file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to