public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Joel Sherrill <joel@OARcorp.com>
To: gas2@cygnus.com
Subject: more on powerpc-rtems ar failure
Date: Thu, 16 Apr 1998 13:26:00 -0000	[thread overview]
Message-ID: <Pine.BSF.3.96.980416151547.26940U-100000@vespucci.advicom.net> (raw)

Thanks for the earlier fix.  

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

Tracing in gdb, it looks like the format of the file is not automatically
recognized:


Breakpoint 4, main (argc=4, argv=0xbffff9dc) at
../../src/binutils/ar.c:555
555           arch = open_inarch (inarch_filename,
(gdb) s
open_inarch (archive_filename=0xbffffaf8 "j.a", file=0xbffffafc "j.o")
    at ../../src/binutils/ar.c:614
614       bfd_set_error (bfd_error_no_error);
(gdb) n
616       target = NULL;
(gdb) 
618       if (stat (archive_filename, &sbuf) != 0)
(gdb) 
661       arch = bfd_openr (archive_filename, target);
(gdb) 
662       if (arch == NULL)
(gdb) 
668       if (! bfd_check_format_matches (arch, bfd_archive, &matching))
(gdb) 
670           bfd_nonfatal (archive_filename);
(gdb) 
/usr1/rtems/work/tools/build-powerpc-tools/gcc/../binutils/ar: j.a:
Invalid operation
671           if (bfd_get_error () ==
bfd_error_file_ambiguously_recognized)
(gdb) 
676           xexit (1);
(gdb) 

----------------------------------

I confirmed this by:

rm j.a
../gas/as-new -mlittle -o j.o j.s
./binutils/ar rc j.a j.o
GNUTARGET=elf32-powerpcle ../binutils/ar rc j.a j.o

The mips64orion failure is the same message in the same place in the gcc
libgcc2 build.  I suspect it is the same type of failure but need to
confirm it.

I think this is a bit better bug report than I started with on the
targets.c one.  Sorry about that.

--joel


             reply	other threads:[~1998-04-16 13:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-16 13:26 Joel Sherrill [this message]
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
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=Pine.BSF.3.96.980416151547.26940U-100000@vespucci.advicom.net \
    --to=joel@oarcorp.com \
    --cc=gas2@cygnus.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).