* ld.texinfo: Document --fatal-warnings.

* ld.1: Regenerate.

* ldmisc.c (vfinfo): Set flag to inhibit making executable if
warnings have been turned into errors.
* lexsup.c (OPTION_WARN_FATAL): Define.
(ld_options): Entry for --fatal-warnings.
(parse_args): Handle OPTION_WARN_FATAL.
* ld.h (ld_config_type): Add fatal_warnings field.
This commit is contained in:
J.T. Conklin
2001-04-13 02:22:23 +00:00
parent f5fa8ca231
commit 7ce691aec4
6 changed files with 47 additions and 5 deletions

View File

@@ -399,6 +399,9 @@ vfinfo (fp, fmt, arg)
}
}
if (config.fatal_warnings)
config.make_executable = false;
if (fatal == true)
xexit (1);
}