Correct previous fix for an absence of input files on the ar command line, so that a complaint is not issued in MRI mode.

PR 21433
	* ar.c (main): Skip check for no files on the command line when
	running in MRI mode.
This commit is contained in:
Nick Clifton
2017-07-17 10:51:45 +01:00
parent f27dadca0a
commit 2a925816fc
2 changed files with 12 additions and 3 deletions

View File

@@ -738,9 +738,6 @@ main (int argc, char **argv)
arg_index = 0;
if (argv[arg_index] == NULL)
usage (0);
if (mri_mode)
{
default_deterministic ();
@@ -750,6 +747,12 @@ main (int argc, char **argv)
{
bfd *arch;
/* Fail if no files are specified on the command line.
(But not for MRI mode which allows for reading arguments
and filenames from stdin). */
if (argv[arg_index] == NULL)
usage (0);
/* We don't use do_quick_append any more. Too many systems
expect ar to always rebuild the symbol table even when q is
used. */