File s390-add-z16-name.diff of Package glibc.25649

This is for bsc#1198751
a variant of upstream 2376944b9e5c0364b9fb473e4d8dabca31b57167 which
only adds the z16 name to the platform list, but does not add it to
the the hwcaps subdirs and neither adds the assert into ld.so
dl_hwcap_check nor adjusts testcases.

Hence:
    S390: Add new s390 platform z16.
    
    The new IBM z16 is added to platform string array.
    The macro _DL_PLATFORMS_COUNT is incremented.
    
    Compared to the upstream commit
    2376944b9e5c0364b9fb473e4d8dabca31b57167, only the platform
    name can be backported to older glibcs.
--- a/sysdeps/s390/dl-procinfo.c	
+++ a/sysdeps/s390/dl-procinfo.c	
@@ -64,11 +64,12 @@ PROCINFO_CLASS const char _dl_s390_cap_flags[23][9]
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_s390_platforms
 #else
-PROCINFO_CLASS const char _dl_s390_platforms[10][7]
+PROCINFO_CLASS const char _dl_s390_platforms[11][7]
 #endif
 #ifndef PROCINFO_DECL
 = {
-    "g5", "z900", "z990", "z9-109", "z10", "z196", "zEC12", "z13", "z14", "z15"
+    "g5", "z900", "z990", "z9-109", "z10", "z196", "zEC12", "z13", "z14", "z15",
+    "z16"
   }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
--- a/sysdeps/s390/dl-procinfo.h	
+++ a/sysdeps/s390/dl-procinfo.h	
@@ -23,7 +23,7 @@ 
 
 #define _DL_HWCAP_COUNT 23
 
-#define _DL_PLATFORMS_COUNT	10
+#define _DL_PLATFORMS_COUNT	11
 
 /* The kernel provides up to 32 capability bits with elf_hwcap.  */
 #define _DL_FIRST_PLATFORM	32
openSUSE Build Service is sponsored by