<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-readelf] - Relocation addends printed style does not match GNU readelf"
href="https://bugs.llvm.org/show_bug.cgi?id=45235">45235</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[llvm-readelf] - Relocation addends printed style does not match GNU readelf
</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>grimar@accesssoftek.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jh7370.2008@my.bristol.ac.uk, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>This is based on the test case from D75671.
Imagine we have an object with relocations:
(A piece of YAML)
Relocations:
## Addend == first negative int64 == -1.
- Addend: 0xffffffffffffffff
Type: R_X86_64_NONE
## Addend == min possible int64 == 0x8000000000000000.
- Addend: 0x8000000000000000
Type: R_X86_64_NONE
## Addend == an arbitrary negative number.
- Addend: 0xFFFFFFFFFFFFCFC7 ## -12345
Type: R_X86_64_NONE
Currently, we print:
Type Symbol's Value Symbol's Name + Addend
R_X86_64_NONE ffffffffffffffff{{$}}
R_X86_64_NONE 8000000000000000{{$}}
R_X86_64_NONE ffffffffffffcfc7{{$}}
But it does not match to the GNU readelf which prints addends differently:
Type Symbol's Value Symbol's Name + Addend
R_X86_64_NONE -1
R_X86_64_NONE -8000000000000000
R_X86_64_NONE -3039
Probably we want to be more compatible with GNU.</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>