From 3463048e40b02f9c03ec1e9b14d128fdaff8e5bd Mon Sep 17 00:00:00 2001 From: Stephen Clarke Date: Mon, 4 Nov 2002 00:02:13 +0000 Subject: [PATCH] * elf32-sh64-com.c (sh64_address_in_cranges): Use _raw_size of cranges section if _cooked_size not yet set. --- bfd/ChangeLog | 5 +++++ bfd/elf32-sh64-com.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f427ee72a0..76ff50799f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-11-03 Stephen Clarke + + * 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 * elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters diff --git a/bfd/elf32-sh64-com.c b/bfd/elf32-sh64-com.c index ae2cab4e69..df0c463e26 100644 --- a/bfd/elf32-sh64-com.c +++ b/bfd/elf32-sh64-com.c @@ -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;