* elf32-sh64-com.c (sh64_address_in_cranges): Use

_raw_size of cranges section if _cooked_size not yet set.
This commit is contained in:
Stephen Clarke 2002-11-04 00:02:13 +00:00
parent 299b302755
commit 3463048e40
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-11-03 Stephen Clarke <stephen.clarke@earthling.net>
* elf32-sh64-com.c (sh64_address_in_cranges): Use
_raw_size of cranges section if _cooked_size not yet set.
2002-11-03 Hans-Peter Nilsson <hp@axis.com>
* elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters

View File

@ -127,7 +127,7 @@ sh64_address_in_cranges (cranges, addr, rangep)
else
{
cranges_contents
= bfd_malloc (cranges->_cooked_size == 0
= bfd_malloc (cranges->_cooked_size != 0
? cranges->_cooked_size : cranges->_raw_size);
if (cranges_contents == NULL)
return false;