diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-06-09 03:08:54 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-06-09 03:08:54 +0000 |
commit | 0b14c2aa9b162e25dc939d3f94009c34aa27e538 (patch) | |
tree | 575e04050528d8de412826b67ce11d9b339ca59b /bfd/elf.c | |
parent | 16737d732a841f5cf905e0f1c71c7b95d6f967ab (diff) | |
download | gdb-0b14c2aa9b162e25dc939d3f94009c34aa27e538.zip gdb-0b14c2aa9b162e25dc939d3f94009c34aa27e538.tar.gz gdb-0b14c2aa9b162e25dc939d3f94009c34aa27e538.tar.bz2 |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |