ad
a9ca7a3734
Catch up with descriptor handling changes. See kern_descrip.c revision
...
1.173 for details.
2008-03-21 21:54:58 +00:00
rumble
80993719d2
Before bailing on ENOENT, try one more time with an appended ".o". This
...
lets us load dependencies by module name and makes 'modload foo' work when
'foo.o' is the file.
2008-01-17 22:32:49 +00:00
ad
9dfa2c0234
Add a function to look up a section by name and return address/size, and
...
nuke return of object entrypoint from kobj_stat(). It's a lot easier to
denote the module entypoint using a linkset.
2008-01-12 23:34:48 +00:00
ad
574389c2a0
Fix build if !MODULAR. Reported by elad@.
2008-01-07 20:42:48 +00:00
ad
b7dafc15be
Don't both about module name / ksyms until the name is known for sure.
2008-01-07 18:25:56 +00:00
ad
0805a9416a
Add MODULAR option. Include kernel linker stuff if MODULAR.
2008-01-06 18:03:58 +00:00
jmcneill
bf49138bfc
Fix off-by-one in kobj_read range checking for case KT_MEMORY
2008-01-06 15:13:07 +00:00
ad
b9e6d93835
- Allow loading ELF objects from memory. Based on a patch from jmcneill.
...
- Allow for changing object name later, once known.
- Split open/load of the objects.
2008-01-06 14:47:26 +00:00
ad
4c5e4edd5c
Add a kobj_stat() to get basic info about the object, and some other
...
minor changes.
2008-01-04 14:53:32 +00:00
ad
1dd75d2865
Add a simple in-kernel linker, derived from FreeBSD's link_elf_obj.c. Needs
...
more work but is enough to load simple LKMs. amd64 is untested.
Locking is caller provided. This is decoupled from the LKM framework because
kernel modules need not be loaded from the file system - they could be built
into the kernel and referenced via link set.
2008-01-04 12:26:20 +00:00