summaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-05-03 09:24:16 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-05-03 09:24:16 +0000
commitae629848ac92b9c71ec85bb946fa8ddde085c3d9 (patch)
tree7d81611a970a784e25ddd630f197eaec6b565b1a /ld/ldfile.c
parent4880fe944ce8a60ac304b43dc6a6219299288331 (diff)
downloadbinutils-redhat-ae629848ac92b9c71ec85bb946fa8ddde085c3d9.tar.gz
* ld.texinfo (--no-warn-search-mismatch): Document.
* ldfile.c (ldfile_try_open_bfd): Don't warn about skipping incompatible libraries if --no-warn-search-mismatch. * ld.h (args_type): Add warn_search_mismatch. * ldmain.c (main): Init it. * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH. (ld_options): Add entry for --no-warn-search-mismatch. (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index d3ad46732a..9781aac887 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -252,8 +252,10 @@ ldfile_try_open_bfd (const char *attempt,
yyin = NULL;
if (skip)
{
- einfo (_("%P: skipping incompatible %s when searching for %s\n"),
- attempt, entry->local_sym_name);
+ if (command_line.warn_search_mismatch)
+ einfo (_("%P: skipping incompatible %s "
+ "when searching for %s\n"),
+ attempt, entry->local_sym_name);
bfd_close (entry->the_bfd);
entry->the_bfd = NULL;
return FALSE;
@@ -279,8 +281,10 @@ ldfile_try_open_bfd (const char *attempt,
&& bfd_get_flavour (output_bfd) == bfd_target_xcoff_flavour
&& bfd_check_format (entry->the_bfd, bfd_archive)))
{
- einfo (_("%P: skipping incompatible %s when searching for %s\n"),
- attempt, entry->local_sym_name);
+ if (command_line.warn_search_mismatch)
+ einfo (_("%P: skipping incompatible %s "
+ "when searching for %s\n"),
+ attempt, entry->local_sym_name);
bfd_close (entry->the_bfd);
entry->the_bfd = NULL;
return FALSE;