aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-10-30 17:28:55 +0000
committerIan Lance Taylor <ian@airs.com>1997-10-30 17:28:55 +0000
commita8880edadc388da47360cf5f3476bf720c0e44cd (patch)
treea0780487ab0655df2146861ae0bee5e50fb252d0 /ld/ld.1
parent605ca21a04d458d2284105b323d446285837cf0a (diff)
downloadgdb-a8880edadc388da47360cf5f3476bf720c0e44cd.zip
gdb-a8880edadc388da47360cf5f3476bf720c0e44cd.tar.gz
gdb-a8880edadc388da47360cf5f3476bf720c0e44cd.tar.bz2
* 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. PR 12714.
Diffstat (limited to 'ld/ld.1')
-rw-r--r--ld/ld.113
1 files changed, 12 insertions, 1 deletions
diff --git a/ld/ld.1 b/ld/ld.1
index 610f046..79c9f10 100644
--- 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