diff options
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldmain.c | 29 |
2 files changed, 21 insertions, 13 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 2931c69..f4ede57 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2002-12-20 Alan Modra <amodra@bigpond.net.au> + + * ldmain.c (main): Re-order link_info initialization. Init all + fields. + 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu> * ld.texinfo: Clarify and extend the documentation diff --git a/ld/ldmain.c b/ld/ldmain.c index 8b7c2f9..ef84e87 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -228,9 +228,9 @@ main (argc, argv) interface by default. */ demangling = getenv ("COLLECT_NO_DEMANGLE") == NULL; - link_info.callbacks = &link_callbacks; link_info.relocateable = FALSE; link_info.emitrelocations = FALSE; + link_info.task_link = FALSE; link_info.shared = FALSE; link_info.symbolic = FALSE; link_info.export_dynamic = FALSE; @@ -241,31 +241,34 @@ main (argc, argv) link_info.allow_shlib_undefined = FALSE; link_info.allow_multiple_definition = FALSE; link_info.allow_undefined_version = TRUE; + link_info.keep_memory = TRUE; + link_info.notice_all = FALSE; + link_info.nocopyreloc = FALSE; + link_info.new_dtags = FALSE; + link_info.combreloc = TRUE; + link_info.eh_frame_hdr = FALSE; link_info.strip = strip_none; link_info.discard = discard_sec_merge; - link_info.keep_memory = TRUE; - link_info.input_bfds = NULL; - link_info.create_object_symbols_section = NULL; - link_info.gc_sym_list = NULL; + link_info.common_skip_ar_aymbols = bfd_link_common_skip_none; + link_info.callbacks = &link_callbacks; link_info.hash = NULL; link_info.keep_hash = NULL; - link_info.notice_all = FALSE; link_info.notice_hash = NULL; link_info.wrap_hash = NULL; - link_info.mpc860c0 = 0; + link_info.input_bfds = NULL; + link_info.create_object_symbols_section = NULL; + link_info.gc_sym_list = NULL; + link_info.base_file = NULL; /* 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"; - link_info.new_dtags = FALSE; - link_info.eh_frame_hdr = FALSE; - link_info.flags = (bfd_vma) 0; - link_info.flags_1 = (bfd_vma) 0; + link_info.mpc860c0 = 0; link_info.pei386_auto_import = -1; link_info.pei386_runtime_pseudo_reloc = FALSE; - link_info.combreloc = TRUE; link_info.spare_dynamic_tags = 5; - link_info.common_skip_ar_aymbols = bfd_link_common_skip_none; + link_info.flags = (bfd_vma) 0; + link_info.flags_1 = (bfd_vma) 0; ldfile_add_arch (""); |