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] |
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