[PATCH] x32: Set GLRO(dl_platform) to "x86_64" by default [BZ #22363]
Andreas Schwab
schwab@linux-m68k.org
Mon Oct 30 16:28:00 GMT 2017
On Okt 30 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:
> On Mon, Oct 30, 2017 at 12:05 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> On Okt 29 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:
>>
>>> Set dl_platform to "x86_64" for x32 by default since kernel may set it
>>> to "i686".
>>
>> Why does it do that? Isn't that a kernel bug?
>>
>
> There is
>
> include/asm/elf.h:#define COMPAT_ELF_PLATFORM ("i686")
>
> It is much simpler to fix it in glibc.
Take a look how this is solved for aarch64 ILP32.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list