* ldmain.c (main): Initialize link_info.init_function and

link_info.fini_function.
	* lexsup.c (OPTION_INIT): New macro.
	(OPTION_FINI): Likewise.
	(ld_options): Add descriptions for them.
	(parse_args): Handle them.
This commit is contained in:
Mark Mitchell
1999-06-23 11:09:30 +00:00
parent f0c2e336c8
commit 3dbf70a218
4 changed files with 44 additions and 1 deletions

View File

@@ -231,7 +231,11 @@ main (argc, argv)
link_info.notice_hash = NULL;
link_info.wrap_hash = NULL;
link_info.mpc860c0 = 0;
/* SVR4 linkers seem to set DT_INIT and DT_FINI based on magic _init
and _fini symbols. We are compatible. */
link_info.init_function = "_init";
link_info.fini_function = "_fini";
ldfile_add_arch ("");
config.make_executable = true;