bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28917] ar: r does not replace objects specified multiple t


From: amodra at gmail dot com
Subject: [Bug binutils/28917] ar: r does not replace objects specified multiple times on the command line
Date: Tue, 23 Aug 2022 13:52:48 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
GNU ar was deliberately changed to allow multiple files with the same base name
in commit 7f924d5516cf5 1996-10-01.  That's when the comment was added about
"compatibility with existing ar programs" too.  I think we should leave things
as they are.  Posix says "It is unspecified whether multiple files in the
archive may be identically named."  Since we do allow that, it seems reasonable
to make "ar -r archive.a a/foo.o b/foo.o" put both objects in the archive.

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