public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@cygnus.com>
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	[thread overview]
Message-ID: <199804162236.SAA02182@subrogation.cygnus.com> (raw)
In-Reply-To: <Pine.BSF.3.96.980416151547.26940U-100000@vespucci.advicom.net>

   Date: Thu, 16 Apr 1998 15:26:16 -0500 (CDT)
   From: Joel Sherrill <joel@OARcorp.com>

   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;
     }
 

  parent reply	other threads:[~1998-04-16 15:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-16 13:26 Joel Sherrill
1998-04-16 14:03 ` Ian Lance Taylor
1998-04-16 15:36   ` Joel Sherrill
1998-04-16 14:43     ` Ian Lance Taylor
1998-04-16 14:55       ` Joel Sherrill
1998-04-16 14:55         ` Ian Lance Taylor
1998-04-16 15:02           ` Joel Sherrill
1998-04-16 15:36 ` Ian Lance Taylor [this message]
1998-04-17  5:55   ` Joel Sherrill
1998-04-17  8:44     ` Ian Lance Taylor
1998-04-17  9:01       ` Joel Sherrill
1998-04-17  9:01         ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199804162236.SAA02182@subrogation.cygnus.com \
    --to=ian@cygnus.com \
    --cc=gas2@cygnus.com \
    --cc=joel@OARcorp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).