[PATCH] x32: Set GLRO(dl_platform) to "x86_64" by default [BZ #22363]

Florian Weimer fweimer@redhat.com
Mon Oct 30 18:31:00 GMT 2017


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



More information about the Libc-alpha mailing list