Commit Graph

26 Commits

Author SHA1 Message Date
jdp
f0c83d6638 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.
1998-08-12 02:39:23 +00:00
charnier
34df42adb0 Add rcsid, remove unused #includes, spelling. 1998-07-06 07:07:41 +00:00
bde
ee3e3e9f46 Fixed printf format errors. 1998-06-28 19:36:49 +00:00
charnier
44e4eb0c65 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
jlemon
12534a78e9 Enable simultaneous use of -u and -p options. Release any resources before
calling post-processing script.
PR:		2864
Submitted by:	Mike Spengler <mks@msc.edu>
1997-08-21 22:33:59 +00:00
bde
6ca2cd7010 Prepare to remove the declaration of sys_siglist from <unistd.h>.
It should only be declared in <signal.h> if at all.  Modload used
to depend on getting it from <unistd.h> because it only included
<sys/signal.h>.
1997-06-29 20:38:38 +00:00
imp
88b6081b7e compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 03:33:12 +00:00
peter
8d7e93a627 Compile under Lite2 (getopt() is in unistd.h etc) 1997-03-11 12:23:09 +00:00
peter
4997d39dce Revert $FreeBSD$ to $Id$ 1997-02-22 14:40:44 +00:00
jkh
9c0cd3f9df Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
e902881dbf Sort cross references. 1997-01-13 00:25:51 +00:00
mpp
319fdd9037 Improve the format of the usage string output.
Submitted by:	Sandro Sigala <sandro@cat.locao.net> as part of PR# 2134
1996-12-09 08:10:45 +00:00
pst
d5a2ef8561 Attempt to unlink any stale .o files before relocating code.
Abort if a file is still present, and make output file mode 0600.

Reviewed by:	bde
1996-08-13 00:50:59 +00:00
pst
59e5ce754b Cover a potential buffer overrun problem 1996-08-13 00:43:01 +00:00
erich
dc15674f9f changed a strchr to a strrchr so that modules with a `.' in the path
can be loaded (e.g. ./mymod.o)
1996-04-26 18:39:48 +00:00
peter
1661708e0b 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
dbe3d2d7bb 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
0d84aee7e3 Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
wollman
5eaf9c8202 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
wollman
9378c86393 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
fb5ce4d4f8 Fix one more _PATH_UNIX. 1994-09-24 03:18:32 +00:00
wollman
d7ad5c7c58 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
2a10b92750 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
fd3ab12c80 Kill explicit OS specification. 1994-08-19 13:39:20 +00:00
dg
e968aad777 netbsd -> kernel, NetBSD -> FreeBSD 1994-08-19 13:28:21 +00:00
dg
9d76062a6d Terry Lambert's loadable kernel module support - modload & modunload
utilities w/improvements from the NetBSD group.
1994-08-19 12:07:23 +00:00