summaryrefslogtreecommitdiff
path: root/packages/modutils/files
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2005-07-21 11:10:50 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-21 11:10:50 +0000
commit48ceec0f1521da502f3fd5ca1f8f9a6158c32bb5 (patch)
treec1c9352b5fdd3568afe74da417219ceab3adc1f6 /packages/modutils/files
parentf7f75893eb029ffec166c6db9c0749b317246e5c (diff)
added MIPS related change to gcc4.patch - now it is buildable if host system
has gcc4 as default (like it is in Debian 'sid')
Diffstat (limited to 'packages/modutils/files')
-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;