<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 --version-info assumes first symbol version is base version"
href="https://bugs.llvm.org/show_bug.cgi?id=37724">37724</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-readobj --version-info assumes first symbol version is base version
</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>mh+llvm@glandium.org
</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=20399" name="attach_20399" title="foo executable">attachment 20399</a> <a href="attachment.cgi?id=20399&action=edit" title="foo executable">[details]</a></span>
foo executable
The output of readobj --version-info for the attached file is the following:
File: foo
Format: ELF64-x86-64
Arch: x86_64
AddressSize: 64bit
LoadName:
Version symbols {
Section Name: .gnu.version (130)
Address: 0x408
Offset: 0x408
Link: 4
Symbols [
Symbol {
Version: 0
Name: @
}
Symbol {
Version: 2
Name: <a href="mailto:__libc_start_main@GLIBC_2.2.5">__libc_start_main@GLIBC_2.2.5</a>
}
Symbol {
Version: 2
Name: <a href="mailto:__cxa_finalize@GLIBC_2.2.5">__cxa_finalize@GLIBC_2.2.5</a>
}
Symbol {
Version: 0
Name: _ITM_registerTMCloneTable@
}
Symbol {
Version: 0
Name: _ITM_deregisterTMCloneTable@
}
Symbol {
Version: 0
Name: __gmon_start__@
}
Symbol {
Version: 1
Name: foo@
}
Symbol {
Version: 1
Name: FOO@
}
]
}
SHT_GNU_verdef {
Definition {
Version: 1
Flags: 0x0
Index: 1
Hash: 19263
Name: FOO
}
}
SHT_GNU_verneed {
Dependency {
Version: 1
Count: 1
FileName: libc.so.6
Entry {
Hash: 157882997
Flags: 0x0
Index: 2
Name: GLIBC_2.2.5
}
}
}
It's rather unconventional that SHT_GNU_verdef doesn't contain a definition
with Flags: Base, but that can happen thanks to GNU gold doing weird things.
Anyways, the point is, symbols foo and FOO should appear as foo@@FOO and
FOO@@FOO, not foo@ and FOO@.</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>