Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 01/04/2008 12:26:20
Module Name:	src
Committed By:	ad
Date:		Fri Jan  4 12:26:20 UTC 2008

Added Files:
	src/sys/arch/amd64/amd64: kobj_machdep.c
	src/sys/arch/i386/i386: kobj_machdep.c
	src/sys/kern: subr_kobj.c
	src/sys/sys: kobj.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/sys/arch/amd64/amd64/kobj_machdep.c
cvs rdiff -r0 -r1.1 src/sys/arch/i386/i386/kobj_machdep.c
cvs rdiff -r0 -r1.1 src/sys/kern/subr_kobj.c
cvs rdiff -r0 -r1.1 src/sys/sys/kobj.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.