Commit Graph

11 Commits

Author SHA1 Message Date
peter
5ec08ccc15 Add a few more heuristics to modload:
1: generate the outfile in /tmp if it's not specified explicitly.
2: if the outfile was implicitly placed in /tmp, automatically remove it.

This means that you can type: modload /lkm/ipfw_mod.o and it'll work, it
wont try and write to /lkm, and it wont leave the (normally) useless
symbol file.

This should not interfere with things like ibcs2 and atapi, which
export some symbols from one LKM to the other by leaving the symbol file.
1995-10-28 17:06:05 +00:00
peter
ec41d6be34 Make modload calculate a reasonable default entry point name, in light
of the recent changes to bsd.kmod.mk, which enforces that the entry
point be <modname>_mod, unless overridden.

This means that when modloading "/lkm/foo_mod.o", it'll use "foo_mod"
as the default entry point (instead of xxxinit) unless you specify
another via the -e option.
1995-10-28 13:06:11 +00:00
rgrimes
f3a2b348da Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
wollman
d83a02d4f2 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
wollman
c443b655cf Make modload more informative about errors encountered while running
`ld' by calling execl() directly rather than using system().
1995-01-23 04:08:00 +00:00
wollman
6f50e987e1 Fix one more _PATH_UNIX. 1994-09-24 03:18:32 +00:00
wollman
6c462c3384 Add two new flags:
-q just shut up, will you?!
	-u unlink output file after successful load
1994-09-22 22:35:53 +00:00
dg
d7b47a4961 Various fixes:
modload doesn't honor it's -p argument.

It also will destroy the input file when you don't specify an output
symbol file with -o.

Submitted by:	John Kohl
1994-09-18 04:12:13 +00:00
dg
7446fa95f8 Kill explicit OS specification. 1994-08-19 13:39:20 +00:00
dg
86df58d019 netbsd -> kernel, NetBSD -> FreeBSD 1994-08-19 13:28:21 +00:00
dg
af3f714add Terry Lambert's loadable kernel module support - modload & modunload
utilities w/improvements from the NetBSD group.
1994-08-19 12:07:23 +00:00