diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1997-04-25 19:43:19 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1997-04-25 19:43:19 +0000 |
| commit | d836aa8d19f074c64f26ced12a7debb0b1f74bbe (patch) | |
| tree | aef2c644e7176e3e31eabedd13f27123d78b18ef /gnu/usr.bin/ld | |
| parent | 72fa3798b4c64fc4debbfde67eef63b06909a695 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/ld')
| -rw-r--r-- | gnu/usr.bin/ld/ld.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index a429e26727f8..257df1ba36bd 100644 --- a/gnu/usr.bin/ld/ld.c +++ b/gnu/usr.bin/ld/ld.c @@ -32,7 +32,7 @@ static char sccsid[] = "@(#)ld.c 6.10 (Berkeley) 5/22/91"; Set, indirect, and warning symbol features added by Randy Smith. */ /* - * $Id: ld.c,v 1.42 1997/03/22 02:59:40 jdp Exp $ + * $Id: ld.c,v 1.43 1997/04/11 17:08:56 bde Exp $ */ /* Define how to initialize system-dependent header fields. */ @@ -500,8 +500,11 @@ decode_command(argc, argv) number_of_files++; } - if (!number_of_files) + if (!number_of_files) { + if (flag_list_files) + exit(0); errx(1, "No input files specified"); + } p = file_table = (struct file_entry *) xmalloc(number_of_files * sizeof(struct file_entry)); |
