[cfe-commits] [patch] --hash-style linker option for Mips targets

Simon Atanasyan satanasyan at mips.com
Thu Dec 8 20:24:32 PST 2011


Please commit because I do not have the commit access.

On Thu, Dec 8, 2011 at 2:30 PM, Chandler Carruth <chandlerc at google.com> wrote:
> This is fine, please commit. If you don't have commit access, I'll commit
> tomorrow. Thanks for fixing!
>
> On Thu, Dec 8, 2011 at 2:14 AM, Atanasyan, Simon <satanasyan at mips.com>
> wrote:
>>
>> Clang driver passes --hash-style=gnu / --hash-style=both options to the
>> linker when the driver runs on some Linux distributions. If a target
>> architecture is Mips, the linker shows the following error:
>>
>> mips-linux-gnu-ld: .gnu.hash is incompatible with the MIPS ABI
>>
>> That is because .gnu.hash and the MIPS ABI require .dynsym to be sorted in
>> different ways. .gnu.hash needs symbols to be grouped by hash code whereas
>> the MIPS ABI requires a mapping between the GOT and the symbol table. Here
>> is the patch to fix this problem.



More information about the cfe-commits mailing list