bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/24800] New: ar fails to create / append archives in aixcof


From: andrew at ishiboo dot com
Subject: [Bug binutils/24800] New: ar fails to create / append archives in aixcoff64-rs6000 target
Date: Wed, 10 Jul 2019 20:56:31 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24800

            Bug ID: 24800
           Summary: ar fails to create / append archives in
                    aixcoff64-rs6000 target
           Product: binutils
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: andrew at ishiboo dot com
  Target Milestone: ---

ar fails to create archives when using the aixcoff64-rs6000 or
aix5coff64-rs6000 targets, but *does* succeed when using the aixcoff-rs6000
target.

$ gnu-ar -V | head -1
GNU ar (GNU Binutils) 2.31.1

Test setup:

$ echo "int foo() { return 0; }" > test.c
$ gcc -c -o test32.o test.c
$ gcc -maix64 -c -o test64.o test.c

Working target:

$ rm -f dummy.a
$ gnu-ar -q --target=aixcoff-rs6000 dummy.a test32.o
gnu-ar: creating dummy.a
$ gnu-ar -t --target=aixcoff-rs6000 dummy.a
test32.o

Broken target, can't create an archive:

$ rm -f dummy.a
$ gnu-ar -q --target=aixcoff64-rs6000 dummy.a test64.o
gnu-ar: creating dummy.a
gnu-ar: dummy.a: invalid operation

... can list/extract an archive created by the OS ar:

$ rm -f dummy.a
$ /bin/ar -X64 q dummy.a test64.o
ar: creating an archive file dummy.a
$ /bin/ar -X64 t dummy.a
test64.o
$ gnu-ar -t --target=aixcoff64-rs6000 dummy.a
test64.o
$ gnu-ar -x --target=aixcoff64-rs6000 dummy.a test64.o
$

... can't append to an archive created by the OS ar:

$ rm -f dummy.a
$ /bin/ar -X64 q dummy.a test64.o
ar: creating an archive file dummy.a
$ /bin/ar -X64 t dummy.a
test64.o
$ cp test64.o foo.o
$ gnu-ar -q --target=aixcoff64-rs6000 dummy.a foo.o
$ gnu-ar -t --target=aixcoff64-rs6000 dummy.a
test64.o
$ /bin/ar -X64 t dummy.a
test64.o

... supported targets:

$ gnu-ar 2>&1 | grep targets
gnu-ar: supported targets: aixcoff-rs6000 aix5coff64-rs6000 aixcoff64-rs6000
elf32-sparc-sol2 elf64-sparc-sol2 elf64-little elf64-big elf32-little elf32-big
elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 pei-i386 pei-x86-64 elf64-l1om
elf64-k1om srec symbolsrec verilog tekhex binary ihex

I don't have many local versions built to narrow the range more, but I do have
2.23.2 and the aixcoff64-rs6000 target works correctly in that version. If I
can narrow the range anymore, I'll provide an update.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]