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

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 28 09:12:37 PDT 2015


Hi,

On Wed, Oct 28, 2015 at 6:52 PM, Rui Ueyama via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> That's why I didn't submit this patch right away. Do MIPS compilers pass
> --hash-style=sysv to the linker?

AFAIK no, it does not. Because sysv is enabled for MIPS by default.

> Also, why don't they support the GNU-style hash table?

https://www.sourceware.org/ml/binutils/2006-07/msg00341.html
[[
.gnu.hash wants .dynsym to be sorted in such a way that symbols with the same
hash value are grouped together, whereas with the MIPS ABI, symbols that don't
have GOT entries must come before symbols that do.  The .dynsym entries for
the latter group must also have the same order as the corresponding GOT entries.
]]


-- 
Simon Atanasyan


More information about the llvm-commits mailing list