From b506760271399733b24374cba0d976bea7c119cf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 19 Dec 2002 23:11:19 +0000 Subject: [PATCH] * ldmain.c (main): Re-order link_info initialization. Init all fields. --- ld/ChangeLog | 5 +++++ ld/ldmain.c | 29 ++++++++++++++++------------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 2931c69d821..f4ede579c53 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2002-12-20 Alan Modra + + * ldmain.c (main): Re-order link_info initialization. Init all + fields. + 2002-12-19 Charles Wilson * ld.texinfo: Clarify and extend the documentation diff --git a/ld/ldmain.c b/ld/ldmain.c index 8b7c2f98dd3..ef84e877550 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 (""); -- 2.30.2