aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-05-22 05:08:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-05-22 05:08:31 +0000
commitaa713662e8c8349dbf475437e8db72ffd9a9cc4d (patch)
tree0bbf4d6f1d9d9515dca47cdc30a8e310987e49c3 /ld/ldmain.c
parent6713542fbc51e3bdc0b347ae2bf14a17db67d2bd (diff)
downloadgdb-aa713662e8c8349dbf475437e8db72ffd9a9cc4d.zip
gdb-aa713662e8c8349dbf475437e8db72ffd9a9cc4d.tar.gz
gdb-aa713662e8c8349dbf475437e8db72ffd9a9cc4d.tar.bz2
2002-05-21 H.J. Lu (hjl@gnu.org)
* emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle "-z muldefs". (gld${EMULATION_NAME}_list_options): Add "-z muldefs". * ld.texinfo: Updated for --allow-multiple-definition and "-z muldefs". * ldmain.c (main): Initialize the allow_multiple_definition field to false. * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New. (ld_options): Add --allow-multiple-definition. (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 814fc9d..25ae5ec 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -239,6 +239,7 @@ main (argc, argv)
link_info.optimize = false;
link_info.no_undefined = false;
link_info.allow_shlib_undefined = false;
+ link_info.allow_multiple_definition = false;
link_info.strip = strip_none;
link_info.discard = discard_sec_merge;
link_info.keep_memory = true;