[PATCH] D14129: ELF2: Make .gnu.hash default instead of .hash.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 28 09:24:53 PDT 2015



On 28.10.2015 21:52, Rui Ueyama wrote:
> On Tue, Oct 27, 2015 at 11:20 PM, Igor Kudrin <ikudrin.dev at gmail.com 
> <mailto:ikudrin.dev at gmail.com>> wrote:
>
>     ikudrin added a subscriber: ikudrin.
>     ikudrin added a comment.
>
>     The default settings for hash section should be target-specific.
>     At least MIPS targets don't support GNU-style hash sections at all.
>
>
> That's why I didn't submit this patch right away. Do MIPS compilers 
> pass --hash-style=sysv to the linker? Also, why don't they support the 
> GNU-style hash table?
>

I'm afraid I don't have enough experience on that topic. At least my 
cross-platform compiler doesn't seem to do that.

They can't support the .gnu.hash section because MIPS ABI specifies that 
symbols in the dynamic symbol table should be sorted in the same order 
as entries of GOT. There were some experimental patches to sort GOT 
entries accordingly, but they didn't look to be accepted 
(https://sourceware.org/ml/binutils/2007-08/msg00387.html).
>
>     http://reviews.llvm.org/D14129
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151028/a4e257e5/attachment.html>


More information about the llvm-commits mailing list