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

            Bug ID: 33484
           Summary: ar: Alpha/ECOFF thin archives missing subsequent
                    members
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: macro at orcam dot me.uk
  Target Milestone: ---
            Target: alpha*-*-linux*ecoff* alpha*-*-osf*

For Alpha/ECOFF targets given these sources and recipe:

$ cat a.s
        .data
        .globl  aa
aa:
        .dc.a   bb
$ cat b.s
        .data
        .globl  bb
bb:
        .dc.a   aa
$ as -o a.o a.s
$ as -o b.o b.s
$ ar rcT abt.a a.o b.o
$ 

an archive is produced that only lists a.o:

$ nm abt.a

a.o:
0000000000000000 D aa
                 U bb
$ 

The same recipe works for all other targets, producing correct contents,
e.g.:

$ alpha-linux-nm abt.a

a.o:
0000000000000000 D aa
                 U bb

b.o:
                 U aa
0000000000000000 D bb
$

Consistently, the archive also fails link:

$ cat abc.s
        .text
        .globl  ff
ff:
        .data
        .globl  cc
cc:
        .dc.a   aa, bb
$ as -o abc.o abc.s
$ ld -o abtc -e ff abc.o abt.a
ld: abt.a: error adding symbols: no more archived files
$ 

Here it works for most other targets, except for a few a.out ones which
fail for another reason.

I've examined the state as at commit a8da6403829d ("Add support for thin
archives.") and it produced the same results, so it's not a regression
and thin archives have never worked for Alpha/ECOFF targets.

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

Reply via email to