From 1212598c9429674994da64b3a17375471d809677 Mon Sep 17 00:00:00 2001 From: "Ryan S. Arnold" Date: Thu, 13 Jun 2013 14:13:39 -0500 Subject: Add support for AT_HWCAP2. --- sysdeps/unix/sysv/linux/i386/dl-procinfo.h | 6 +++++- sysdeps/unix/sysv/linux/s390/dl-procinfo.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h index a82f8f5b8d..225a5eb8dc 100644 --- a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h @@ -24,12 +24,16 @@ #undef _dl_procinfo static inline int __attribute__ ((unused)) -_dl_procinfo (int word) +_dl_procinfo (unsigned int type, unsigned int word) { /* This table should match the information from arch/i386/kernel/setup.c in the kernel sources. */ int i; + /* Unused for now. */ + if (type == AT_HWCAP2) + return 0; + _dl_printf ("AT_HWCAP: "); for (i = 0; i < _DL_HWCAP_COUNT; ++i) diff --git a/sysdeps/unix/sysv/linux/s390/dl-procinfo.h b/sysdeps/unix/sysv/linux/s390/dl-procinfo.h index 5ca4b76ca7..eb60fc2ba8 100644 --- a/sysdeps/unix/sysv/linux/s390/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/s390/dl-procinfo.h @@ -24,12 +24,16 @@ #undef _dl_procinfo static inline int __attribute__ ((unused)) -_dl_procinfo (int word) +_dl_procinfo (unsigned int type, unsigned int word) { /* This table should match the information from arch/s390/kernel/setup.c in the kernel sources. */ int i; + /* Unused for now. */ + if (type == AT_HWCAP2) + return 0; + _dl_printf ("AT_HWCAP: "); for (i = 0; i < _DL_HWCAP_COUNT; ++i) -- cgit v1.2.3-70-g09d2