diff options
author | Stephen Clarke <stephen.clarke@earthling.net> | 2002-11-04 00:02:13 +0000 |
---|---|---|
committer | Stephen Clarke <stephen.clarke@earthling.net> | 2002-11-04 00:02:13 +0000 |
commit | 3463048e40b02f9c03ec1e9b14d128fdaff8e5bd (patch) | |
tree | 2066953e921bedbea3c984ff04f84bfca747a661 /bfd/elf32-sh64-com.c | |
parent | 299b302755ca472437fecf7c8a30616ebc156192 (diff) | |
download | gdb-3463048e40b02f9c03ec1e9b14d128fdaff8e5bd.zip gdb-3463048e40b02f9c03ec1e9b14d128fdaff8e5bd.tar.gz gdb-3463048e40b02f9c03ec1e9b14d128fdaff8e5bd.tar.bz2 |
* elf32-sh64-com.c (sh64_address_in_cranges): Use
_raw_size of cranges section if _cooked_size not yet set.
Diffstat (limited to 'bfd/elf32-sh64-com.c')
-rw-r--r-- | bfd/elf32-sh64-com.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-sh64-com.c b/bfd/elf32-sh64-com.c index ae2cab4..df0c463 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; |