This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Disable .gnu.hash on MIPS targets


Richard Sandiford wrote:
Unfortunately, the new .gnu.hash stuff seems to be fundamentally
incompatible with the MIPS ABI.  .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.

So, this patch makes ld error out if you try to create .gnu.hash
on MIPS.  This is necessary to get a working library with glibc HEAD.

Tested on mips64-linux-gnu, mips64-elf and mips-sgi-irix6.5.
OK to install?


OK. Thanks as always.


-eric


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]