diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-06-23 11:09:30 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 1999-06-23 11:09:30 +0000 |
commit | 3dbf70a2184b98af04dfec550fec9ae1a804bdb0 (patch) | |
tree | 22f5010221c6a1018cbff701fc44df60fee86d06 /ld/ldmain.c | |
parent | f0c2e336c82a1b8c7088d07d33e936fabbe1f0ea (diff) | |
download | gdb-3dbf70a2184b98af04dfec550fec9ae1a804bdb0.zip gdb-3dbf70a2184b98af04dfec550fec9ae1a804bdb0.tar.gz gdb-3dbf70a2184b98af04dfec550fec9ae1a804bdb0.tar.bz2 |
* 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.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 1e710db..7eef3e5 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -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; |