mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
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.
This commit is contained in:
parent
9c450f6f6f
commit
6edbe546d6
@ -1,3 +1,10 @@
|
|||||||
|
2017-05-24 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||||
|
|
||||||
|
* 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 <hongjiu.lu@intel.com>
|
2017-05-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/x86/cacheinfo.c: Skip if not in libc.
|
* sysdeps/x86/cacheinfo.c: Skip if not in libc.
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#if !defined PROCINFO_DECL && defined SHARED
|
#if !defined PROCINFO_DECL && defined SHARED
|
||||||
._dl_arm_cap_flags
|
._dl_arm_cap_flags
|
||||||
#else
|
#else
|
||||||
PROCINFO_CLASS const char _dl_arm_cap_flags[37][10]
|
PROCINFO_CLASS const char _dl_arm_cap_flags[27][10]
|
||||||
#endif
|
#endif
|
||||||
#ifndef PROCINFO_DECL
|
#ifndef PROCINFO_DECL
|
||||||
= {
|
= {
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
|
|
||||||
#define _DL_HWCAP_COUNT 37
|
#define _DL_HWCAP_COUNT 27
|
||||||
|
|
||||||
/* Low 22 bits are allocated in HWCAP. */
|
/* Low 22 bits are allocated in HWCAP. */
|
||||||
#define _DL_HWCAP_LAST 21
|
#define _DL_HWCAP_LAST 21
|
||||||
|
Loading…
Reference in New Issue
Block a user