summaryrefslogtreecommitdiff
path: root/packages/modutils/files/gcc4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/modutils/files/gcc4.patch')
-rw-r--r--packages/modutils/files/gcc4.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/modutils/files/gcc4.patch b/packages/modutils/files/gcc4.patch
index 187a677158..e204898f05 100644
--- a/packages/modutils/files/gcc4.patch
+++ b/packages/modutils/files/gcc4.patch
@@ -51,3 +51,16 @@
xrealloc(a_hdr, a_hdr->total_size);
p = (char *)a_hdr + a_hdr->symbol_off;
memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size);
+--- modutils-2.4.27/obj/obj_mips.c.orig 2003-04-05 00:47:17.000000000 +0200
++++ modutils-2.4.27/obj/obj_mips.c 2005-07-21 12:51:48.000000000 +0200
+@@ -244,7 +244,9 @@
+ archdata_sec->header.sh_size = 0;
+ sec = obj_find_section(f, "__dbe_table");
+ if (sec) {
+- ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad));
++/* ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad));*/
++ archdata_sec->contents = xmalloc(sizeof(*ad));
++ ad = (struct archdata *) (archdata_sec->contents);
+ memset(ad, 0, sizeof(*ad));
+ archdata_sec->header.sh_size = sizeof(*ad);
+ ad->__start___dbe_table = sec->header.sh_addr;