diff options
author | jdp <jdp@FreeBSD.org> | 1998-08-12 02:39:23 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-08-12 02:39:23 +0000 |
commit | 5996cf05e621798b7ccad623eaa961577d18ae3c (patch) | |
tree | 04cfb1abc807615582e8032a088dad201c9891f5 | |
parent | f288fd5d96869ea259f7c654fc8ec8a11d975c18 (diff) | |
download | FreeBSD-src-5996cf05e621798b7ccad623eaa961577d18ae3c.zip FreeBSD-src-5996cf05e621798b7ccad623eaa961577d18ae3c.tar.gz |
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.
-rw-r--r-- | sbin/modload/modload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index ba85682..4ef53fa 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -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); } |