mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-09-21 15:52:39 +02:00
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.
This commit is contained in:
parent
72fa3798b4
commit
d836aa8d19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25141
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user