From: Siddhesh Poyarekar Date: Wed, 24 May 2017 16:56:36 +0000 (+0530) Subject: arm: Fix typo in array count X-Git-Tag: glibc-2.26~459 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6edbe546d6ac243a5e3c2610853f2da53f0507b4;p=thirdparty%2Fglibc.git arm: Fix typo in array count I just noticed that the array count for the hwcap flags list in ARM is off by 10, i.e. 37 instead of 27. Following patch fixes this. * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags): Fix array subscript. * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT): Fix count. --- diff --git a/ChangeLog b/ChangeLog index 4abd668481f..d3f3d6a6fe1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-05-24 Siddhesh Poyarekar + + * sysdeps/unix/sysv/linux/arm/dl-procinfo.c + (_dl_arm_cap_flags): Fix array subscript. + * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT): + Fix count. + 2017-05-24 H.J. Lu * sysdeps/x86/cacheinfo.c: Skip if not in libc. diff --git a/sysdeps/unix/sysv/linux/arm/dl-procinfo.c b/sysdeps/unix/sysv/linux/arm/dl-procinfo.c index 20246941f5c..15c45d089f6 100644 --- a/sysdeps/unix/sysv/linux/arm/dl-procinfo.c +++ b/sysdeps/unix/sysv/linux/arm/dl-procinfo.c @@ -46,7 +46,7 @@ #if !defined PROCINFO_DECL && defined SHARED ._dl_arm_cap_flags #else -PROCINFO_CLASS const char _dl_arm_cap_flags[37][10] +PROCINFO_CLASS const char _dl_arm_cap_flags[27][10] #endif #ifndef PROCINFO_DECL = { diff --git a/sysdeps/unix/sysv/linux/arm/dl-procinfo.h b/sysdeps/unix/sysv/linux/arm/dl-procinfo.h index 5dc394d9085..b6a9d9f6a21 100644 --- a/sysdeps/unix/sysv/linux/arm/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/arm/dl-procinfo.h @@ -23,7 +23,7 @@ #include #include -#define _DL_HWCAP_COUNT 37 +#define _DL_HWCAP_COUNT 27 /* Low 22 bits are allocated in HWCAP. */ #define _DL_HWCAP_LAST 21