This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Change in 'ar' behaviour
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jeff Baker <jbaker at qnx dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 11 Aug 2004 12:23:40 +0930
- Subject: Re: Change in 'ar' behaviour
- References: <4118DB7C.3000004@qnx.com>
On Tue, Aug 10, 2004 at 10:28:12AM -0400, Jeff Baker wrote:
> One of our customers has noticed a change in the behaviour of 'ar'
> between 2.10.1 and 2.12.1 or later.
>
> 2.10.1
> ------
> $ ar rcs test.a object.o
> $ ar rcs test.a dir/object.o
> $ ar tv test.a
> rw-rw-rw- 1003/513 21368 Jul 27 13:14 2004 object.o
> rw-rw-rw- 1003/513 12384 Jul 27 13:14 2004 dir/object.o
>
> 2.12.1 (or later)
> -----------------
> $ ar rcs test.a object.o
> $ ar rcs test.a dir/object.o
> $ ar tv test.a
> rw-rw-rw- 1003/513 12384 Jul 27 13:14 2004 object.o
I suspect this was a deliberate change, to make GNU ar comply with
posix.
> I tried the -P option to ar, but that only causes ar to add every object
> to the file whether the full path matches or not. Is this behaviour
> expected?
It seems a little unreasonable to me..
--
Alan Modra
IBM OzLabs - Linux Technology Centre