<div class="gmail_quote">On Thu, Dec 8, 2011 at 8:24 PM, Simon Atanasyan <span dir="ltr"><<a href="mailto:satanasyan@mips.com">satanasyan@mips.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Please commit because I do not have the commit access.<br></blockquote><div><br></div><div>Done in r146243.</div><div><br></div><div>Any chance you could work up a test case that could be added to test/Driver/linux-ld.c that would exercise this new functionality? I could try, but I worry I'd not capture it correctly as I don't have any knowledge of MIPS.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="HOEnZb"><div class="h5"><br>
On Thu, Dec 8, 2011 at 2:30 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br>
> This is fine, please commit. If you don't have commit access, I'll commit<br>
> tomorrow. Thanks for fixing!<br>
><br>
> On Thu, Dec 8, 2011 at 2:14 AM, Atanasyan, Simon <<a href="mailto:satanasyan@mips.com">satanasyan@mips.com</a>><br>
> wrote:<br>
>><br>
>> Clang driver passes --hash-style=gnu / --hash-style=both options to the<br>
>> linker when the driver runs on some Linux distributions. If a target<br>
>> architecture is Mips, the linker shows the following error:<br>
>><br>
>> mips-linux-gnu-ld: .gnu.hash is incompatible with the MIPS ABI<br>
>><br>
>> That is because .gnu.hash and the MIPS ABI require .dynsym to be sorted in<br>
>> different ways. .gnu.hash needs symbols to be grouped by hash code whereas<br>
>> the MIPS ABI requires a mapping between the GOT and the symbol table. Here<br>
>> is the patch to fix this problem.<br>
</div></div></blockquote></div><br>