ar (and ranlib) do not correctly identify ELF64 files in an archive. It 
complains that the format is ambiguous. See the testcase below:

[tesla:~]$ touch foo.c
[tesla:~]$ gcc -mabi=64 -o foo.o -c foo.c
[tesla:~]$ ar cq libfoo.a foo.o
[tesla:~]$ ar t libfoo.a
ar: libfoo.a: File format is ambiguous
ar: Matching formats: ecoff-littlemips ecoff-bigmips elf64-tradlittlemips
[tesla:~]$

-- 
           Summary: ar doesn't recognize ELF64 on mips
           Product: binutils
           Version: 2.18 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: bug-binutils at gnu dot org
 GCC build triplet: mipsel-unknown-linux-gnu
  GCC host triplet: mipsel-unknown-linux-gnu
GCC target triplet: mipsel-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=4453

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to