summaryrefslogtreecommitdiffstats
path: root/meta/packages/modutils/files/gcc4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/modutils/files/gcc4.patch')
-rw-r--r--meta/packages/modutils/files/gcc4.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/packages/modutils/files/gcc4.patch b/meta/packages/modutils/files/gcc4.patch
new file mode 100644
index 0000000000..e204898f05
--- /dev/null
+++ b/meta/packages/modutils/files/gcc4.patch
@@ -0,0 +1,66 @@
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
3@@ -1133,7 +1133,7 @@
4
5 for (ksym = ksyms; so_far < nksyms; ++so_far, ksym++) {
6 if (strncmp((char *)ksym->name, "GPLONLY_", 8) == 0)
7- ((char *)ksym->name) += 8;
8+ ksym->name += 8;
9 assert(n_syms < MAX_MAP_SYM);
10 symtab[n_syms++] = addsym((char *)ksym->name, mod, SYM_DEFINED, 0);
11 }
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
14@@ -45,7 +45,7 @@
15 int flag_debug, flag_dump_defs, flag_warnings;
16 int checksum_version = 1, kernel_version = version(2,0,0);
17
18-static int errors;
19+int errors;
20 static int nsyms;
21
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
25@@ -275,7 +275,7 @@
26 if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) {
27 gplonly_seen = 1;
28 if (gpl)
29- ((char *)s->name) += 8;
30+ s->name += 8;
31 else
32 continue;
33 }
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
36@@ -200,7 +200,7 @@
37
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);
45@@ -275,7 +275,7 @@
46 a_hdr->symbol_off +
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
56@@ -244,7 +244,9 @@
57 archdata_sec->header.sh_size = 0;
58 sec = obj_find_section(f, "__dbe_table");
59 if (sec) {
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;