wiz
080a1b9108
Remove superfluous TRUE and FALSE definitions.
...
Noted by Jeff Ito in PR 24845.
2004-03-19 12:04:37 +00:00
kleink
888c4ead28
Update the change from rev. 1.42 to reflect that MAXPATH includes room
...
for the terminating NUL character.
2004-02-12 21:10:39 +00:00
jdolecek
a09b055053
it's not correct to use MAXPATHNAME-sized buffer for link command, as
...
pointed out by Klaus Klein (original idea was that it should hold at least
the pathname ...); instead, let the ELF and a.out backends allocate memory
for the link command, and get rid of the fixed size buffer altogether
2004-02-11 18:42:37 +00:00
jdolecek
b69e6f038b
use MAXPATHLEN-sized buffer for module paths
...
reported and fix provided in bin/24379 by Nicolas Joly
2004-02-10 12:30:22 +00:00
fvdl
d9495c6d9a
Don't compare an integer to NULL.
2003-10-21 02:31:08 +00:00
wiz
495a82c52c
New sentence, new line; improve grammar.
2003-09-06 20:09:26 +00:00
jdolecek
ade4df3adc
implement support for forced LKM load, which makes the kernel skip
...
the version checks, using new -f flag and LMFORCE ioctl
Hopefully the description in the manpage is discouraging enough so that
nobody would dare even _think_ of using forced loads. A warning
message is written to stderr when this is used, just in case.
2003-09-06 19:23:20 +00:00
itojun
354140d884
remove obsolete comment
2003-07-13 07:45:27 +00:00
itojun
59b2dcde2e
asprintf() is easier than malloc + sprintf
2003-07-12 16:52:22 +00:00
ragge
46943c2cf6
Try first to use /dev/ksyms to get kernel symbols, if that fails mutter a
...
bit and fallback to the old way.
2003-04-24 20:18:31 +00:00
jdolecek
40d3f26f8c
desupport LMRESERV_O, anything relying on it doesn't have chance of working
...
anyway due to numerous kernel structure changes
2003-04-11 07:49:31 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
c39c2e62d5
'NetBSD.org' and some mdoc fixes.
2003-02-14 16:21:47 +00:00
atatat
1784bd0a07
If no other name is specified, and machdep.booted_kernel is present
...
and names a file, use that as a the default kernel, otherwise fall
back to /netbsd.
Makes lkms work *much* better when you're testing kernels that are not
named /netbsd.
2003-02-09 23:29:32 +00:00
thorpej
3d3807182d
Skip empty sections. From Allen Briggs.
2002-11-07 05:55:08 +00:00
simonb
da75d51b40
Add support for using an optional linker script (/usr/lkm/ldscript if
...
found, and overridable by the -T option).
2002-10-10 01:57:10 +00:00
simonb
99f05800ca
Use "type *" instead of "type*".
2002-10-07 02:33:55 +00:00
simonb
c3bdd6ef09
ANSIfy, KNF, declare externs in headers only.
2002-10-06 13:23:00 +00:00
wiz
2fb4b1db52
New sentence, new line. By Robert Elz with minimal fixes.
2002-10-01 13:40:23 +00:00
lha
4fa2032edc
uppercase the lkm kernel-userspace dev macros and prefix them with LKM_
...
make modload print the bdev and cdev major when its a dev lkm
2002-09-18 22:59:36 +00:00
gehenna
b7c0e53f09
For loadable drivers, the 3rd argument is character device major and
...
the 4th argument is block device major.
Remove one item from BUGS section.
2002-09-13 15:32:21 +00:00
gehenna
a5ac3deb40
Split the overload block/character device major.
...
The 3rd argument is character device major and
the 4th argument is block device major.
2002-09-13 15:30:36 +00:00
joda
72d8f527fb
various spelling
2002-07-24 14:14:10 +00:00
jdolecek
83e7b8936b
Only provide sym_size and sym_symsize if symbols are actually going
...
to be loaded.
This also avoids the annoying 'Unable to find symbol table slot
for xxx' kernel message when module is unloaded.
2002-04-03 19:03:09 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
jdolecek
b3adaffa36
make sure string_table is initialized to NULL in read_shstring_table(),
...
so that NULL is returned if .strtab is not found
2002-01-03 21:45:58 +00:00
wiz
ca7b306a86
Improve author markup, use standard header.
2001-11-16 11:57:16 +00:00
wiz
4ce43ae0cd
Whitespace nits
2001-11-16 10:25:42 +00:00
christos
522d8e170c
PR/14498: Wesley Chen: Support symbol loading on elf lkms.
2001-11-08 15:33:15 +00:00
jdolecek
de45f5a902
couple cosmetic stylistic changes
2001-09-29 21:15:11 +00:00
assar
1a56bc85de
(usage): add -s and -S
2001-09-17 01:40:08 +00:00
fvdl
e2ff2f5762
Use ELFSIZE 64 for x86-64.
2001-06-19 00:40:57 +00:00
wiz
73f545bb5b
Drop arguments of .Os.
2001-06-05 11:22:41 +00:00
drochner
07c471d18e
Do the last fix correctly: round the beginning of the .data segment,
...
otherwise an unaligned address gets passed to the linker. (which is
rounded there, so this is harmless)
XXX how about passing "-N" and killing all these hacks?
2001-03-26 15:50:20 +00:00
jdolecek
f334b7ef55
make sure that elf_mod_sizes() uses data_hole size aligned to section alignment
...
this fixes a problem where elf_mod_sizes() would report size which would
be different (smaller) that the actual size of LKM code to be loaded in some
cases
Reviewed by: Johan Danielsson
2000-12-27 20:29:36 +00:00
cgd
db755e7c76
sweep of my licenses (userland files w/o only my copyright) for
...
consistency. (no functional changes)
2000-06-14 17:24:02 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
jdolecek
dd42da9e90
correct getopt() optstring: -A gets a parameter!
2000-03-16 17:33:04 +00:00
deberg
c0541f24c2
-S isn't supposed to take an argument
2000-02-27 00:20:20 +00:00
kleink
522cbf0248
Update to match new SVR4-style definition names in <sys/exec_elf.h>.
1999-10-25 13:55:06 +00:00
mycroft
01ec1d5609
Don't try to play games with the BSS; just make it work.
1999-07-21 03:32:53 +00:00
mrg
72a64c5437
add ELF support, mostly from joda@pdc.kth.se (Johan Danielsson) in PR#6149,
...
updated for the symtab support for a.out (non for ELF yet) and other cleanup
by myself. should work on the alpha as well as other ELF ports...
remove the ld(1) output by default, rather than leaving little binary turds
across the filesystem...
1999-06-13 12:54:40 +00:00
ross
855480012b
Invert the meaning of -s, from "don't load symbols" to "load symbols".
...
Document that this is expensive (and why) in the BUGS section.
1999-04-30 18:32:01 +00:00
abs
4a22f0e03d
Fix entry point parsing if output file specified to modload (PR7352)
1999-04-23 17:47:02 +00:00
erh
fa45851f9b
Add missing .El line.
1999-03-10 05:14:51 +00:00
mycroft
f6590b22cd
Clean up SYNOPSIS formatting.
1999-03-07 11:02:05 +00:00
sommerfe
0c70fedcac
Allow modload to load symbols for use by DDB.
1999-01-13 23:07:30 +00:00
mycroft
519d858510
__AUDIT__ cleanup.
1998-07-28 19:22:54 +00:00
mycroft
0c4d98ae35
const poisoning.
1998-07-26 17:53:10 +00:00
mjacob
c84aa13b30
Mods for alpha: doesn't work yet, but this is as good a placeholder as
...
any to note the ld flags to actually use. Still to do: elf loading.
1997-12-01 19:30:59 +00:00