summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/ld
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-25 19:43:19 +0000
committerbde <bde@FreeBSD.org>1997-04-25 19:43:19 +0000
commit624b69d11f8abcda00ea4e522f34610d7857b757 (patch)
treee83a3d9165f5d9c2072505662acb9ddbb4de69ac /gnu/usr.bin/ld
parent6b593dbda89fee41d73f2786dcf66d051b34f6e7 (diff)
downloadFreeBSD-src-624b69d11f8abcda00ea4e522f34610d7857b757.zip
FreeBSD-src-624b69d11f8abcda00ea4e522f34610d7857b757.tar.gz
Don't complain about no input files for `ld -f'. This fixes spurious
(ignored :-() errors for `make depend' in /sys/i386/boot/*. It's natural for there to be no libraries there and inconvenient to check for this in bsd.prog.mk.
Diffstat (limited to 'gnu/usr.bin/ld')
-rw-r--r--gnu/usr.bin/ld/ld.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c
index a429e26..257df1b 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));
OpenPOWER on IntegriCloud