This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: more on powerpc-rtems ar failure



Thanks.

On Thu, 16 Apr 1998, Ian Lance Taylor wrote:

> Found the problem.

Is this just that the code to check for "wrong format" was missing?  So
now it prints a better message?

Were you able to reproduce Eric Norum's Srecord split problem?  Did you
get all the information you wanted?

--joel

> Index: archive.c
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/bfd/archive.c,v
> retrieving revision 1.135
> diff -u -r1.135 archive.c
> --- archive.c	1998/03/27 21:30:25	1.135
> +++ archive.c	1998/04/16 22:33:17
> @@ -646,6 +646,8 @@
>      {
>        bfd_release (abfd, bfd_ardata (abfd));
>        abfd->tdata.aout_ar_data = tdata_hold;
> +      if (bfd_get_error () != bfd_error_system_call)
> +	bfd_set_error (bfd_error_wrong_format);
>        return NULL;
>      }
>  
> @@ -653,6 +655,8 @@
>      {
>        bfd_release (abfd, bfd_ardata (abfd));
>        abfd->tdata.aout_ar_data = tdata_hold;
> +      if (bfd_get_error () != bfd_error_system_call)
> +	bfd_set_error (bfd_error_wrong_format);
>        return NULL;
>      }
>  
>