PATCH: fix som_get_reloc_upper_bound if no reloc

Nick Clifton nickc@redhat.com
Tue Sep 25 16:20:00 GMT 2007


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



More information about the Binutils mailing list