<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 - --hash-style=both by default (like recent ld.bfd and ld.gold)"
href="https://bugs.llvm.org/show_bug.cgi?id=34712">34712</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>--hash-style=both by default (like recent ld.bfd and ld.gold)
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>romain.geissler@amadeus.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Hi,
Recently ld.bfd and ld.gold were updated so that the default --hash-style is
now "both" instead of "sysv". See this commit:
<a href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=2760f24c4942853eac7b921e4b8843d57a602654">https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=2760f24c4942853eac7b921e4b8843d57a602654</a>
Note: it is right now conditionally enabled, just for GNU targets, and
explicitly disabled for MIPS, see here:
<a href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=ld/configure.ac;h=02b23e17db4c04f0c8606bb1604c36de1e28b0e5;hb=b4a7c699688bd88313893cbb59ee0df5b8cd009b#l192">https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=ld/configure.ac;h=02b23e17db4c04f0c8606bb1604c36de1e28b0e5;hb=b4a7c699688bd88313893cbb59ee0df5b8cd009b#l192</a>
This will be released next year with binutils 2.30.
Looking at the lld source code, it looks like the default is still "sysv", as
shown here: <a href="https://github.com/llvm-mirror/lld/blob/master/ELF/Driver.cpp#L552">https://github.com/llvm-mirror/lld/blob/master/ELF/Driver.cpp#L552</a>
Do you think it would make sense to switch as well the default in ldd to
"--hash-style=both" (conditionally, not for MIPS target for example, since that
would be an ABI breakage on these targets).
Cheers,
ROmain</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>