[llvm-bugs] [Bug 39023] New: Normalise paths on insertion into thin archive

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 20 09:26:57 PDT 2018


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

            Bug ID: 39023
           Summary: Normalise paths on insertion into thin archive
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-ar
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

Currently, for thin archives, llvm-ar simply takes the path specified on the
command-line, and adds the file with the name matching the path, with no
normalisation or anything. GNU ar normalises the file path added. Normalising
the path would make the output from 't' simpler, and would also shorten the
length of any strings in the archive's filename table:

> ar rcT test1.a ./dir/../test.o
> ar t test1.a
test.o

> llvm-ar rc test2.a ./dir/../test.o
> llvm-ar t test2.a
/./dir/../test.o          # see bug 39020 regarding the leading '/'

-- 
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/20180920/7104e43f/attachment-0001.html>


More information about the llvm-bugs mailing list