From 1ae8bfe07c1ab2444cc1d186321ff1431a1b9f96 Mon Sep 17 00:00:00 2001 From: "Ryan S. Arnold" Date: Fri, 28 Jun 2013 16:50:48 -0500 Subject: Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type. --- ports/ChangeLog.alpha | 5 +++++ ports/ChangeLog.arm | 7 +++++++ ports/ChangeLog.mips | 5 +++++ ports/sysdeps/alpha/dl-procinfo.h | 2 +- ports/sysdeps/mips/dl-procinfo.h | 2 +- ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h | 6 +++++- 6 files changed, 24 insertions(+), 3 deletions(-) (limited to 'ports') diff --git a/ports/ChangeLog.alpha b/ports/ChangeLog.alpha index 59e78d1d3b..1ccae37e93 100644 --- a/ports/ChangeLog.alpha +++ b/ports/ChangeLog.alpha @@ -1,3 +1,8 @@ +2013-06-28 Ryan S. Arnold + + * sysdeps/alpha/dl-procinfo.h (_dl_procinfo): Add TYPE parameter + to macro prototype for AT_HWCAP2 support. + 2013-06-24 Richard Henderson [BZ #15666] diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm index 2c07021cdf..6cc665c99c 100644 --- a/ports/ChangeLog.arm +++ b/ports/ChangeLog.arm @@ -1,3 +1,10 @@ +2013-06-28 Ryan S. Arnold + + * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo): Add + TYPE parameter to macro prototype for AT_HWCAP2 support. Make WORD + unsigned long int rather than signed int. Stub in handler for TYPE == + AT_HWCAP2 to return -1 for unknown a_type display fallback. + 2013-06-18 Roland McGrath * sysdeps/arm/arm-mcount.S: Comment typo fix. diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips index 00542f59e2..1f69593a2d 100644 --- a/ports/ChangeLog.mips +++ b/ports/ChangeLog.mips @@ -1,3 +1,8 @@ +2013-06-28 Ryan S. Arnold + + * sysdeps/mips/dl-procinfo.h (_dl_procinfo): Add TYPE parameter + to macro prototype for AT_HWCAP2 support. + 2013-06-27 Maciej W. Rozycki * sysdeps/unix/sysv/linux/mips/dl-static.c: Do not include diff --git a/ports/sysdeps/alpha/dl-procinfo.h b/ports/sysdeps/alpha/dl-procinfo.h index 523d966761..0344dbc968 100644 --- a/ports/sysdeps/alpha/dl-procinfo.h +++ b/ports/sysdeps/alpha/dl-procinfo.h @@ -51,7 +51,7 @@ _dl_string_platform (const char *str) }; /* We cannot provide a general printing function. */ -#define _dl_procinfo(word) -1 +#define _dl_procinfo(type, word) -1 /* There are no hardware capabilities defined. */ #define _dl_hwcap_string(idx) "" diff --git a/ports/sysdeps/mips/dl-procinfo.h b/ports/sysdeps/mips/dl-procinfo.h index 5cc9a44446..e96550c402 100644 --- a/ports/sysdeps/mips/dl-procinfo.h +++ b/ports/sysdeps/mips/dl-procinfo.h @@ -51,7 +51,7 @@ _dl_string_platform (const char *str) }; /* We cannot provide a general printing function. */ -#define _dl_procinfo(word) -1 +#define _dl_procinfo(type, word) -1 /* There are no hardware capabilities defined. */ #define _dl_hwcap_string(idx) "" diff --git a/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h b/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h index 161e86c796..251653ae16 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h +++ b/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h @@ -31,10 +31,14 @@ static inline int __attribute__ ((unused)) -_dl_procinfo (int word) +_dl_procinfo (unsigned int type, unsigned long int word) { int i; + /* Fallback to unknown output mechanism. */ + if (type == AT_HWCAP2) + return -1; + _dl_printf ("AT_HWCAP: "); for (i = 0; i < _DL_HWCAP_COUNT; ++i) -- cgit 1.4.1