* ld.h (args_type): Add warn_mismatch field.
authorIan Lance Taylor <ian@airs.com>
Thu, 30 Oct 1997 17:28:55 +0000 (17:28 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 30 Oct 1997 17:28:55 +0000 (17:28 +0000)
* ldmain.c (main): Initialize warn_mismatch field.
* lexsup.c (parse_args): Handle --no-warn-mismatch option.
* ldlang.c (ignore_bfd_error): New static function.
(lang_check): If warn_mismatch is false, don't warn about
mismatched input files.
* ld.texinfo, ld.1: Document new option.
PR 12714.

ld/ChangeLog
ld/ld.1

index 1915fa8..d5e740f 100644 (file)
@@ -1,3 +1,13 @@
+Thu Oct 30 12:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
+
+       * ld.h (args_type): Add warn_mismatch field.
+       * ldmain.c (main): Initialize warn_mismatch field.
+       * lexsup.c (parse_args): Handle --no-warn-mismatch option.
+       * ldlang.c (ignore_bfd_error): New static function.
+       (lang_check): If warn_mismatch is false, don't warn about
+       mismatched input files.
+       * ld.texinfo, ld.1: Document new option.
+
 start-sanitize-tx49
 Wed Oct 29 17:50:26 1997  Gavin Koch  <gavin@cygnus.com>
 
diff --git a/ld/ld.1 b/ld/ld.1
index 610f046..79c9f10 100644 (file)
--- a/ld/ld.1
+++ b/ld/ld.1
@@ -1,4 +1,4 @@
-.\" Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation
+.\" Copyright (c) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation
 .\" See section COPYING for conditions for redistribution
 .TH ld 1 "17 August 1992" "cygnus support" "GNU Development Tools"
 .de BP
@@ -91,6 +91,7 @@ ld \- the GNU linker
 .RB "[\|" \-n | \-N "\|]" 
 .RB "[\|" \-noinhibit-exec "\|]" 
 .RB "[\|" \-no\-keep\-memory "\|]" 
+.RB "[\|" \-no\-warn\-mismatch "\|]" 
 .RB "[\|" "\-oformat\ "\c
 .I output-format\c
 \&\|] 
@@ -666,6 +667,16 @@ tables as necessary.  This may be required if the linker runs out of
 memory space while linking a large executable.
 
 .TP
+.B \-no\-warn\-mismatch
+Normally the linker will give an error if you try to link together
+input files that are mismatched for some reason, perhaps because they
+have been compiled for different processors or for different
+endiannesses.  This option tells the linker that it should silently
+permit such possible errors.  This option should only be used with
+care, in cases when you have taken some special action that ensures
+that the linker errors are inappropriate.
+
+.TP
 .BI "\-o " "output"
 .I output\c
 \& is a name for the program produced by \c