* ldlang.c (load_symbols): If whole_archive is true and ENTRY
authorIan Lance Taylor <ian@airs.com>
Thu, 16 Mar 1995 19:06:41 +0000 (19:06 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 16 Mar 1995 19:06:41 +0000 (19:06 +0000)
describes an archive, call bfd_link_add_symbols on each member.
* ldmain.c (whole_archive): New variable.
(main): Initialize it to false.
* ldmain.h: Declare whole_archive.
* lexsup.c (parse_args): Grok --whole-archive switch.

ld/ChangeLog
ld/ldmain.c

index 532d625c8122d155e375e67830e90fc35f6468b6..cd8f44d370e243b503e912c618e3403ab698e151 100644 (file)
@@ -1,3 +1,12 @@
+Thu Mar 16 13:59:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
+
+       * ldlang.c (load_symbols): If whole_archive is true and ENTRY
+       describes an archive, call bfd_link_add_symbols on each member.
+       * ldmain.c (whole_archive): New variable.
+       (main): Initialize it to false.
+       * ldmain.h: Declare whole_archive.
+       * lexsup.c (parse_args): Grok --whole-archive switch.
+
 Thu Mar 16 11:38:48 1995  Ian Lance Taylor  <ian@cygnus.com>
 
        * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
index 5c534a43a38679aee1f1ccb4557fc51752f157c3..9b507b13ce9b76b4c2dd6801a8da0dbed8b1c985 100644 (file)
@@ -72,6 +72,9 @@ boolean trace_file_tries;
    instead of complaining if no input files are given.  */
 boolean version_printed;
 
+/* Nonzero means link in every member of an archive.  */
+boolean whole_archive;
+
 args_type command_line;
 
 ld_config_type config;
@@ -158,6 +161,7 @@ main (argc, argv)
 
   /* Initialize the data about options.  */
   trace_files = trace_file_tries = version_printed = false;
+  whole_archive = false;
   config.traditional_format = false;
   config.build_constructors = true;
   config.dynamic_link = false;