modules: pull in most of FreeBSD's module linker changes
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 3 Sep 2009 23:17:18 +0000 (01:17 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 3 Sep 2009 23:17:19 +0000 (01:17 +0200)
commit1c0e32863e0583221e430c22c1c68a023fd16195
treea93bdba2af6e7433849c7b7e31eafedda7b895df
parent8abbd9559a9449f2ed562d533d0070dd318b38df
modules: pull in most of FreeBSD's module linker changes

The big user-visible difference is that the module dependency
system changed.  Module dependencies are now the same as for
the loader, and the hack linker (and Makefile) magic is not
needed anymore.

Obtained-from:  FreeBSD
sys/cpu/i386/misc/elf_machdep.c
sys/kern/kern_linker.c
sys/kern/kern_module.c
sys/kern/link_elf.c
sys/kern/vfs_syscalls.c
sys/netgraph/netgraph/ng_base.c
sys/platform/pc64/amd64/elf_machdep.c
sys/sys/linker.h