projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
_bfd_alloc_and_read
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-rx.c
diff --git
a/bfd/elf32-rx.c
b/bfd/elf32-rx.c
index 0a9900ff21bf37c59aea3fabd2fc0bb8031a8763..bd08eb47d8aa8d667b82996dc44edcccefe777a1 100644
(file)
--- a/
bfd/elf32-rx.c
+++ b/
bfd/elf32-rx.c
@@
-2066,11
+2066,10
@@
elf32_rx_relax_section (bfd * abfd,
bfd_set_error (bfd_error_file_too_big);
goto error_return;
}
bfd_set_error (bfd_error_file_too_big);
goto error_return;
}
- shndx_buf = bfd_malloc (amt);
- if (shndx_buf == NULL)
+ if (bfd_seek (abfd, shndx_hdr->sh_offset, SEEK_SET) != 0)
goto error_return;
goto error_return;
- if (bfd_seek (abfd, shndx_hdr->sh_offset, SEEK_SET) != 0
-
|| bfd_bread (shndx_buf, amt, abfd) != amt
)
+ shndx_buf = _bfd_malloc_and_read (abfd, amt, amt);
+
if (shndx_buf == NULL
)
goto error_return;
shndx_hdr->contents = shndx_buf;
}
goto error_return;
shndx_hdr->contents = shndx_buf;
}
This page took
0.023327 seconds
and
4
git commands to generate.