<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-readobj missing "File: lib.a(file.o)" info when dumping .a files."
href="https://bugs.llvm.org/show_bug.cgi?id=35351">35351</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-readobj missing "File: lib.a(file.o)" info when dumping .a files.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>huangs@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When llvm-readobj runs on a .a file, the output is missing
File: lib.a(file.o)
info that tells you where the dump come from.
Example: Assume $LLVM_PATH set to LLVM output binaries directory,
set LLVM_PATH=/.../bin/
Run the following to create test.a and dump it using readelf and llvm-readobj:
echo 'void foo() {}' | $LLVM_PATH/clang -x c++ - -c -o a.o
echo 'void bar() {}' | $LLVM_PATH/clang -x c++ - -c -o b.o
$LLVM_PATH/llvm-ar rs test.a a.o b.o
readelf -S -W test.a > out1
$LLVM_PATH/llvm-readobj -S -W -elf-output-style=GNU test.a > out2
diff out1 out2
Expected output: <Empty>
Actual output:
1,2d0
<
< File: test.a(a.o)
19,20d16
<
< File: test.a(b.o)</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>