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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to