forked from Imagelibrary/binutils-gdb
* 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:
@@ -399,6 +399,9 @@ vfinfo (fp, fmt, arg)
|
||||
}
|
||||
}
|
||||
|
||||
if (config.fatal_warnings)
|
||||
config.make_executable = false;
|
||||
|
||||
if (fatal == true)
|
||||
xexit (1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user