From: Steve Chamberlain Date: Fri, 25 Feb 1994 21:09:09 +0000 (+0000) Subject: * srec.c (pass_over): Don't skip too many characters when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e808126677845ec035cc169e41c909be3ec90f4;p=binutils-gdb.git * srec.c (pass_over): Don't skip too many characters when end of line seen. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a6b8961f2f3..ffb339b62ea 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 25 12:57:00 1994 Steve Chamberlain (sac@jonny.cygnus.com) + + * srec.c (pass_over): Don't skip too many characters when + end of line seen. + Fri Feb 25 11:41:57 1994 Ian Lance Taylor (ian@cygnus.com) * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte diff --git a/bfd/srec.c b/bfd/srec.c index 06432b95d6c..5e020a20d3d 100644 --- a/bfd/srec.c +++ b/bfd/srec.c @@ -224,7 +224,7 @@ fillup_symbols (abfd, buf, len, val) abfd->tdata.srec_data->strings = (char *) bfd_alloc (abfd, abfd->tdata.srec_data->string_size); if (!abfd->tdata.srec_data->symbols || !abfd->tdata.srec_data->strings) { - bfd_error = no_memory; + bfd_set_error (bfd_error_no_memory); abort (); /* FIXME */ } abfd->tdata.srec_data->symbol_idx = 0; @@ -314,7 +314,7 @@ DEFUN (srec_mkobject, (abfd), tdata_type *tdata = (tdata_type *) bfd_alloc (abfd, sizeof (tdata_type)); if (!tdata) { - bfd_error = no_memory; + bfd_set_error (bfd_error_no_memory); return false; } abfd->tdata.srec_data = tdata; @@ -350,7 +350,6 @@ pass_over (abfd, func, symbolfunc, section) switch (*src) { default: - eof = (boolean) (bfd_read (src, 1, 1, abfd) != 1); if (eof) return; break; @@ -533,7 +532,7 @@ DEFUN (srec_get_section_contents, (abfd, section, location, offset, count), section->used_by_bfd = (PTR) bfd_alloc (abfd, section->_raw_size); if (!section->used_by_bfd) { - bfd_error = no_memory; + bfd_set_error (bfd_error_no_memory); return false; } @@ -574,7 +573,7 @@ DEFUN (srec_set_section_contents, (abfd, section, location, offset, bytes_to_do) if (!entry) { - bfd_error = no_memory; + bfd_set_error (bfd_error_no_memory); return false; } @@ -584,7 +583,7 @@ DEFUN (srec_set_section_contents, (abfd, section, location, offset, bytes_to_do) unsigned char *data = (unsigned char *) bfd_alloc (abfd, bytes_to_do); if (!data) { - bfd_error = no_memory; + bfd_set_error (bfd_error_no_memory); return false; } memcpy (data, location, bytes_to_do);