Module rewrite 14/20: Module License Support
PATCH 1/1 Module rewrite 14/20: Module License Support
Name: MODULE_LICENSE support for modules
Author: Rusty Russell
Status: Untested
Depends: Module/modversions.patch.gz
D: This implements EXPORT_SYMBOL_GPL and MODULE_LICENSE properly (so
D: restrictions are enforced). It also sets up a table for finding
D: the sections in the ELF object, since there are now enough
D: variables to make it sensible.
arch/i386/vmlinux.lds.S +4 -0
@@ -29,6 +29,10 @@ SECTIONS __start___ksymtab = .; /* Kernel symbol table */ __ksymtab : { *(__ksymtab) } __stop___ksymtab = .; + . = ALIGN(64); + __start_gpl_ksymtab = .; /* Kernel symbol table (GPL only) */ + __gpl.ksymtab : { *(__gpl.ksymtab) } + __stop_gpl_ksymtab = .; .data : { /* Data */ *(.data)
include/linux/module.h +41 -3
82 lines not on this page · raw message
kernel/module.c +125 -96
393 lines not on this page · raw message
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.