From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: joel@OARcorp.com Cc: gas2@cygnus.com Subject: Re: more on powerpc-rtems ar failure Date: Thu, 16 Apr 1998 15:36:00 -0000 Message-id: <199804162236.SAA02182@subrogation.cygnus.com> References: X-SW-Source: 1998/msg00147.html Date: Thu, 16 Apr 1998 15:26:16 -0500 (CDT) From: Joel Sherrill This problem is another -mlittle one. Here is a test case: ------------------ assembly file used to duplicate this ----- .file "j.s" .section ".text" .align 2 .globl f f: blr ----------------------- end of file ../gas/as-new -mlittle -o j.o j.s ../binutils/ar rc j.a j.o ../binutils/ar rc j.a j.o ../binutils/ar: j.a: Invalid operation Found the problem. Ian 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; }