<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 28, 2015 at 9:12 AM, Simon Atanasyan <span dir="ltr"><<a href="mailto:simon@atanasyan.com" target="_blank">simon@atanasyan.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Wed, Oct 28, 2015 at 6:52 PM, Rui Ueyama via llvm-commits<br>
<<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
> That's why I didn't submit this patch right away. Do MIPS compilers pass<br>
> --hash-style=sysv to the linker?<br>
<br>
</span>AFAIK no, it does not. Because sysv is enabled for MIPS by default.<br>
<span class=""><br>
> Also, why don't they support the GNU-style hash table?<br>
<br>
</span><a href="https://www.sourceware.org/ml/binutils/2006-07/msg00341.html" rel="noreferrer" target="_blank">https://www.sourceware.org/ml/binutils/2006-07/msg00341.html</a><br>
[[<br>
.gnu.hash wants .dynsym to be sorted in such a way that symbols with the same<br>
hash value are grouped together, whereas with the MIPS ABI, symbols that don't<br>
have GOT entries must come before symbols that do.  The .dynsym entries for<br>
the latter group must also have the same order as the corresponding GOT entries.<br>
]]<br></blockquote><div><br></div><div>Sigh. That's very unfortunate that .gnu.hash is designed in such a way that that cannot live with the MIPS ABI. Maybe I should abandon this patch. My ultimate goal with this patch was to make .gnu.hash default everywhere and stop the compiler to pass --hash-style to the linker, but until MIPS has a solution to the incompatibility issue, that's not doable.</div></div></div></div>