https://bugs.llvm.org/show_bug.cgi?id=37530
Bug ID: 37530
Summary: llvm-ar doesn't produce valid thin archives when
combining multiple .a
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-ar
Assignee: unassignedb...@nondot.org
Reporter: d...@golovin.in
CC: llvm-bugs@lists.llvm.org
Created attachment 20322
--> https://bugs.llvm.org/attachment.cgi?id=20322&action=edit
resulting test2.a archive using llvm-ar
The behavior of llvm-ar is not the same with GNU ar (from GNU binutils).
To reproduce this:
1. create two empty objects:
clang -c -x c /dev/null -o test1.o
clang -c -x c /dev/null -o test2.o
2. archive the first object:
llvm-ar rcSTD test1.a test1.o
3. archive the second object together with the first archive:
llvm-ar rcsTD test2.a test2.o test1.a
4. check archive's contents:
llvm-ar t test2.a
Expected result:
test2.o and test1.o are in the archive
Actual result:
test2.o and test1.a are in the archive
If you use GNU ar instead of llvm-ar, you will get the expected result.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs