summaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2002-06-09 03:08:54 +0000
committerH.J. Lu <hjl@lucon.org>2002-06-09 03:08:54 +0000
commitfb2cd21e9990c34de33b61282408799be7c2435c (patch)
tree33b02190d199d3e02c93015cfa8252da5a457418 /bfd/elf.c
parent7f32ef825ec526667d73f0d6e42b8397fffd5689 (diff)
downloadgdb-fb2cd21e9990c34de33b61282408799be7c2435c.tar.gz
2002-06-08 H.J. Lu <hjl@gnu.org>
* elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to work around a long long bug in gcc 2.96 on mips.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index dd1b0673e4b..61b9f50b064 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4688,7 +4688,9 @@ copy_private_bfd_data (ibfd, obfd)
pointers that we are interested in. As these sections get assigned
to a segment, they are removed from this array. */
- amt = (bfd_size_type) section_count * sizeof (asection *);
+ /* Gcc 2.96 miscompiles this code on mips. Don't do casting here
+ to work around this long long bug. */
+ amt = section_count * sizeof (asection *);
sections = (asection **) bfd_malloc (amt);
if (sections == NULL)
return false;