1 --- modutils-2.4.27/depmod/depmod.c.old 2005-06-05 23:25:28.000000000 +0100
2 +++ modutils-2.4.27/depmod/depmod.c 2005-06-05 23:25:38.000000000 +0100
5 for (ksym = ksyms; so_far < nksyms; ++so_far, ksym++) {
6 if (strncmp((char *)ksym->name, "GPLONLY_", 8) == 0)
7 - ((char *)ksym->name) += 8;
9 assert(n_syms < MAX_MAP_SYM);
10 symtab[n_syms++] = addsym((char *)ksym->name, mod, SYM_DEFINED, 0);
12 --- modutils-2.4.27/genksyms/genksyms.c.old 2005-06-05 23:24:16.000000000 +0100
13 +++ modutils-2.4.27/genksyms/genksyms.c 2005-06-05 23:24:35.000000000 +0100
15 int flag_debug, flag_dump_defs, flag_warnings;
16 int checksum_version = 1, kernel_version = version(2,0,0);
22 static struct symbol *expansion_trail;
23 --- modutils-2.4.27/insmod/insmod.c.old 2005-06-05 23:21:47.000000000 +0100
24 +++ modutils-2.4.27/insmod/insmod.c 2005-06-05 23:22:34.000000000 +0100
26 if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) {
29 - ((char *)s->name) += 8;
34 --- modutils-2.4.27/obj/obj_kallsyms.c.old 2005-06-05 23:20:08.000000000 +0100
35 +++ modutils-2.4.27/obj/obj_kallsyms.c 2005-06-05 23:20:24.000000000 +0100
38 /* Initial contents, header + one entry per input section. No strings. */
39 osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec);
40 - a_hdr = (struct kallsyms_header *) osec->contents =
41 + a_hdr = osec->contents =
42 xmalloc(osec->header.sh_size);
43 memset(osec->contents, 0, osec->header.sh_size);
44 a_hdr->size = sizeof(*a_hdr);
47 a_hdr->symbols*a_hdr->symbol_size +
48 strings_size - strings_left;
49 - a_hdr = (struct kallsyms_header *) osec->contents =
50 + a_hdr = osec->contents =
51 xrealloc(a_hdr, a_hdr->total_size);
52 p = (char *)a_hdr + a_hdr->symbol_off;
53 memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size);
54 --- modutils-2.4.27/obj/obj_mips.c.orig 2003-04-05 00:47:17.000000000 +0200
55 +++ modutils-2.4.27/obj/obj_mips.c 2005-07-21 12:51:48.000000000 +0200
57 archdata_sec->header.sh_size = 0;
58 sec = obj_find_section(f, "__dbe_table");
60 - ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad));
61 +/* ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad));*/
62 + archdata_sec->contents = xmalloc(sizeof(*ad));
63 + ad = (struct archdata *) (archdata_sec->contents);
64 memset(ad, 0, sizeof(*ad));
65 archdata_sec->header.sh_size = sizeof(*ad);
66 ad->__start___dbe_table = sec->header.sh_addr;