[patch RFC] Fix PR binutils/2584
Alan Modra
amodra@bigpond.net.au
Thu Apr 27 03:27:00 GMT 2006
On Thu, Apr 27, 2006 at 08:06:23AM +0900, Kaz Kojima wrote:
> PR 2584
> * tekhex.c (first_phase): Change return type to bfd_boolean
> and return false if the unexpected character is found.
> (pass_over): Change return type to bfd_boolean and the type of
> the second argument to bfd_boolean (*) (bfd *, int, char *).
> Return false if FUNC returns false.
> (tekhex_object_p): Return NULL if pass_over fails.
Thanks, but can I ask that you do this differently? Add an
unsigned int * param to getsym to return the length, and move the hex
check into getsym. Return false from getsym on bad hex chars.
Similarly add a bfd_vma * param to getvalue to return the value and
return status via the function return. Also replace "abort ()" in
first_phase with "return FALSE" while you're at it. Patch preapproved.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list