[llvm-bugs] [Bug 37530] New: llvm-ar doesn't produce valid thin archives when combining multiple .a
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat May 19 04:19:38 PDT 2018
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: unassignedbugs at nondot.org
Reporter: dima at golovin.in
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180519/c29800e0/attachment.html>
More information about the llvm-bugs
mailing list