This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] x32: Set GLRO(dl_platform) to "x86_64" by default [BZ #22363]


On 10/30/2017 07:15 PM, H.J. Lu wrote:
I saw

#define ELF_PLATFORM ("aarch64_be")
#define ELF_PLATFORM ("aarch64")
#define COMPAT_ELF_PLATFORM ("v8b")
#define COMPAT_ELF_PLATFORM ("v8l")

on staging/ilp32-4.13 branch.

I assume v8l/v8b will be used as AT_PLATFORM for both ILP32 and
arm32 programs.    I don't see how this approach can work for i686
and x32.

The bug is that with an x86-64 kernel, we didn't set AT_PLATFORM to x86_64 by default for all executables because that's a reasonable way to identify the microarchitecture (in particular, that there is SSE2 support, and you can switch to long mode if you think it's beneficial for what you are doing).

Thanks,
Florian


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