objdump infinite loop on v850 object file
Andreas Schwab
schwab@linux-m68k.org
Tue Oct 5 18:17:00 GMT 2010
Alan Modra <amodra@gmail.com> writes:
> Index: binutils/bucomm.c
> ===================================================================
> RCS file: /cvs/src/src/binutils/bucomm.c,v
> retrieving revision 1.39
> diff -u -p -r1.39 bucomm.c
> --- binutils/bucomm.c 11 Dec 2009 13:42:05 -0000 1.39
> +++ binutils/bucomm.c 5 Oct 2010 03:07:22 -0000
> @@ -52,8 +52,10 @@ char *program_name;
> void
> bfd_nonfatal (const char *string)
> {
> - const char *errmsg = bfd_errmsg (bfd_get_error ());
> + const char *errmsg;
>
> + fflush (stdout);
> + errmsg = bfd_errmsg (bfd_get_error ());
Wouldn't that clobber errno if the error is bfd_error_system_call?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Binutils
mailing list