https://bugs.llvm.org/show_bug.cgi?id=39033
Bug ID: 39033
Summary: Replace incorrectly replaces files in thin archives
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-ar
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
This may be caused by the same issue causing bug 38542, but the symptoms are
the opposite: in that bug, replace is not replacing things when it should,
whereas in this one, it is replacing things when it shouldn't, in some cases,
and in other cases, simply doesn't work:
Case 1:
C:\Work\TempWork>touch test.o
C:\Work\TempWork>touch ..\test.o
C:\Work\TempWork>llvm-ar rcT ..\test.a test.o
C:\Work\TempWork>llvm-ar rcT ..\test.a ..\test.o
C:\Work\TempWork>llvm-ar t ..\test.a
llvm-ar.exe: no such file or directory.
<prints help text>
# inspection of archive shows that the archive contains one member,
# with the path '../test.o/' when it should be 'test.o/'
Case 2:
C:\Work\TempWork>touch test.o
C:\Work\TempWork>touch ..\test.o
C:\Work\TempWork>llvm-ar rcT test.a test.o
C:\Work\TempWork>llvm-ar rcT test.a ../test.o
C:\Work\TempWork>llvm-ar t test.a
/../test.o
# should also have a member 'test.o'
# Note that adding the files in the other order works correctly.
I'm not sure if these are the same issue or not. Clearly, something is going
wrong with the path comparison here, just as in bug 38542.
--
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