mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user