This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] x32: Set GLRO(dl_platform) to "x86_64" by default [BZ #22363]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 30 Oct 2017 05:36:02 -0700
- Subject: Re: [PATCH] x32: Set GLRO(dl_platform) to "x86_64" by default [BZ #22363]
- Authentication-results: sourceware.org; auth=none
- References: <20171029211541.GA6435@gmail.com> <87zi899kuv.fsf@linux-m68k.org>
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.
--
H.J.