<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 GNU output for dynamic table does not match GNU readelf output"
href="https://bugs.llvm.org/show_bug.cgi?id=40862">40862</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-readobj GNU output for dynamic table does not match GNU readelf output
</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>Windows NT
</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-readobj
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jh7370.2008@my.bristol.ac.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>jh7370.2008@my.bristol.ac.uk, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>There is no distinction between GNU and LLVM style in llvm-readobj's dynamic
table. The differences are small, but could be enough to break parsers. It also
does not print potentially useful information:
GNU readelf output:
Dynamic section at offset 0x1f0 contains 2 entries:
Tag Type Name/Value
0x0000000000000015 (DEBUG) 0x0
0x0000000000000000 (NULL) 0x0
llvm-readelf output:
DynamicSection [ (2 entries)
Tag Type Name/Value
0x0000000000000015 DEBUG 0x0
0x0000000000000000 NULL 0x0
]
The important differences are:
1) no offset in the header in llvm-readelf output.
2) square brackets containing the list in llvm-readelf output.
3) Types are not bracketed in llvm-readelf output.
There may be others to do with interpretation (e.g. where the value represents
a string), but I have not analysed those.</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>