<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - llvm-ar doesn't produce valid thin archives when combining multiple .a"
href="https://bugs.llvm.org/show_bug.cgi?id=37530">37530</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-ar doesn't produce valid thin archives when combining multiple .a
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-ar
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dima@golovin.in
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20322" name="attach_20322" title="resulting test2.a archive using llvm-ar">attachment 20322</a> <a href="attachment.cgi?id=20322&action=edit" title="resulting test2.a archive using llvm-ar">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>