Add "-aout" option when calling the linker, so that this will work

in an ELF world.  This will have to be revisited when the kernel
moves to ELF.
This commit is contained in:
John Polstra 1998-08-12 02:39:23 +00:00
parent de00beffba
commit c42a51a6ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38254

View File

@ -32,7 +32,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: modload.c,v 1.22 1998/07/06 07:07:41 charnier Exp $";
#endif /* not lint */
#include <a.out.h>
@ -93,8 +93,8 @@ linkcmd(kernel, entry, outfile, address, object)
}
if(pid == 0) {
execl(_PATH_LD, "ld", "-A", kernel, "-e", entrybuf, "-o",
outfile, "-T", addrbuf, object, (char *)0);
execl(_PATH_LD, "ld", "-aout", "-A", kernel, "-e", entrybuf,
"-o", outfile, "-T", addrbuf, object, (char *)0);
exit(128 + errno);
}