[llvm-bugs] [Bug 25525] New: [META] Make llvm-ar a drop-in replacement for BSD ar

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 13 11:18:26 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25525

            Bug ID: 25525
           Summary: [META] Make llvm-ar a drop-in replacement for BSD ar
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-ar
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Let me write this down here so I don't forget.
There are two major blockers:
1) Missing options, -c , -r, -D (description attached)

 -c      Suppress the informational message printed when a new archive is
         created using the -r and -q options.
(I think this one can be probably ignored).

  -r      Replace (add) the files specified by arguments file ... in the
             archive specified by argument archive, creating the archive if
             necessary.  Replacing existing members will not change the order
             of members within the archive.  If a file named in arguments
             file ... does not exist, existing members in the archive that
             match that name are not changed.  New files are added to the end
             of the archive unless one of the positioning options -a, -b or -i
             is specified.  The archive symbol table, if it exists, is updated
             to reflect the new state of the archive.

     -D      When used in combination with the -r or -q option, insert 0's
             instead of the real mtime, uid and gid values and 0644 instead of
             file mode from the members named by arguments file ....  This
             ensures that checksums on the resulting archives are reproducible
             when member contents are identical.  This option is enabled by
             default.  If multiple -D and -U options are specified on the com-
             mand line, the final one takes precedence.

2) Size. llvm-ar is currently 15MB (without debug) while BSD ar is currently
1MB. The size might be a concern if FreeBSD wants to ship with ar on embedded
(e.g. ARM), so we should see if we can improve on this side.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151113/493b16b5/attachment.html>


More information about the llvm-bugs mailing list