This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: fix som_get_reloc_upper_bound if no reloc
- From: Nick Clifton <nickc at redhat dot com>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 25 Sep 2007 17:14:49 +0100
- Subject: Re: PATCH: fix som_get_reloc_upper_bound if no reloc
- References: <0FE78EC2-1553-498E-9A3B-5F0320518817@adacore.com>
Hi Tristan,
This seems to be an obvious patch: if there are no relocs,
bfd_get_reloc_upper_bound should returns
sizeof (arelent *) for the ending NULL (and not 0).
I am not so sure about this. If the section does not have any relocs
associated with it then there should be no need to store anything, not even a
NUL reloc. So returning 0 seems to be the correct thing to me.
Cheers
Nick