Skip to contentSkip to conversation

Module rewrite 14/20: Module License Support

PATCH New Rusty Russell 1 participant 1 message Sep 25, 2002 Module support

lore
Share & tools
lore
#0 lore raw

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
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .14496-linux-2.5.38/arch/i386/vmlinux.lds.S .14496-linux-2.5.38.updated/arch/i386/vmlinux.lds.S
@@ -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.