summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Becker <geoman@gentoo.org>2006-04-21 14:05:30 +0000
committerStephen Becker <geoman@gentoo.org>2006-04-21 14:05:30 +0000
commita478624e092a9672d363ec9c093689e24446420b (patch)
treee995c6c44d2c3f8fa1865cf0e4ae5d9bce40741a /sys-apps/module-init-tools/files
parentFix default/timer issues on IIi/IIe machines (diff)
downloadgentoo-2-a478624e092a9672d363ec9c093689e24446420b.tar.gz
gentoo-2-a478624e092a9672d363ec9c093689e24446420b.tar.bz2
gentoo-2-a478624e092a9672d363ec9c093689e24446420b.zip
fix obj_mips.c for gcc4
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'sys-apps/module-init-tools/files')
-rw-r--r--sys-apps/module-init-tools/files/modutils-2.4.27-gcc.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-apps/module-init-tools/files/modutils-2.4.27-gcc.patch b/sys-apps/module-init-tools/files/modutils-2.4.27-gcc.patch
index 3f90a9b2b2de..5193c82e36d9 100644
--- a/sys-apps/module-init-tools/files/modutils-2.4.27-gcc.patch
+++ b/sys-apps/module-init-tools/files/modutils-2.4.27-gcc.patch
@@ -278,3 +278,15 @@ Most changes taken from Debian.
memset(ad, 0, sizeof(*ad));
archdata_sec->header.sh_size = sizeof(*ad);
ad->__start___ftr_fixup = sec->header.sh_addr;
+--- obj/obj_mips.c
++++ obj/obj_mips.c
+@@ -244,7 +244,8 @@
+ archdata_sec->header.sh_size = 0;
+ sec = obj_find_section(f, "__dbe_table");
+ if (sec) {
+- 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;