* bfdio.c (bfd_bread): Use arelt_size macro.
2012-01-06 Tristan Gingold <gingold@adacore.com>
+ * bfdio.c (bfd_bread): Use arelt_size macro.
+
+2012-01-06 Tristan Gingold <gingold@adacore.com>
+
* config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
2012-01-05 Nick Clifton <nickc@redhat.com>
this element. */
if (abfd->arelt_data != NULL)
{
- size_t maxbytes = ((struct areltdata *) abfd->arelt_data)->parsed_size;
+ size_t maxbytes = arelt_size (abfd);
if (abfd->where + size > maxbytes)
{
if (abfd->where >= maxbytes)