aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-03-16 19:06:41 +0000
committerIan Lance Taylor <ian@airs.com>1995-03-16 19:06:41 +0000
commitf2f55b1677af6a75aa735277b533c566886e1279 (patch)
tree949174773294d9131b7860b47719c5c2384a198d /ld/ldmain.c
parent171eb2f2596b261bd311a248aea2c6eb6c96d4f6 (diff)
downloadgdb-f2f55b1677af6a75aa735277b533c566886e1279.zip
gdb-f2f55b1677af6a75aa735277b533c566886e1279.tar.gz
gdb-f2f55b1677af6a75aa735277b533c566886e1279.tar.bz2
* 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.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 5c534a4..9b507b1 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -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;