about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/x86/cpu-features.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index 87aaa8683c..0ca29365ef 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -430,6 +430,11 @@ no_cpuid:
 
       if (platform != NULL)
 	GLRO(dl_platform) = platform;
+# ifdef __ILP32__
+      /* Set dl_platform to "x86_64" since kernel may set it to "i686".  */
+      else
+	GLRO(dl_platform) = "x86_64";
+# endif
     }
 #else
   GLRO(dl_hwcap) = 0;