[PATCH] aout relocs
msnyder@sonic.net
msnyder@sonic.net
Thu Jul 26 18:43:00 GMT 2007
> Hi Michael,
>
>>> That's the only place where something needs to be done (the pointer
>>> must
>>> still be valid even if the size is zero).
>>
>> Alright -- that's enough to justify the patch, isn't it?
>
> Certainly - please apply it. Although you could simplify the second part
> of
> the patch by just checking to see if count is zero and returning, in the
> same
> way as you check reloc_size.
Done.
> That way you do not need to check the return values of both allocs.
Well, yes I do -- bfd_malloc can still fail.
Checked in as attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: slurp_reloc.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20070726/938de80a/attachment.txt>
More information about the Binutils
mailing list