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

Chandler Carruth chandlerc at google.com
Thu Dec 8 02:30:31 PST 2011


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.
>
> --
> Simon
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111208/ce632028/attachment.html>


More information about the cfe-commits mailing list