aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/ldsodefs.h
diff options
context:
space:
mode:
authorRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-06-27 15:48:35 -0500
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-06-27 15:48:35 -0500
commit0cfec279fbb3c25b9c37e35e303ad4cdab77ed81 (patch)
treebd6898ac31cecffe9ea408e08113eb6e648ad9a9 /sysdeps/generic/ldsodefs.h
parentfe114d206479a36369d732ea260e81a686fdbb0b (diff)
downloadglibc-rsa/hwcap2_v5.zip
glibc-rsa/hwcap2_v5.tar.gz
glibc-rsa/hwcap2_v5.tar.bz2
Add GLRO(dl_hwcap2), conditional on per platform HWCAP2_AVAIL.rsa/hwcap2_v5
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r--sysdeps/generic/ldsodefs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index cb17204..edb6efd 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -408,6 +408,7 @@ struct rtld_global
size_t count;
void *list[50];
} *_dl_scope_free_list;
+
#ifdef SHARED
};
# define __rtld_global_attribute__
@@ -554,6 +555,14 @@ struct rtld_global_ro
EXTERN struct link_map *_dl_sysinfo_map;
#endif
+#include <dl-hwcap2.h>
+
+#if HWCAP2_AVAIL
+ /* Mask for more hardware capabilities that are available on some
+ platforms. */
+ EXTERN uint64_t _dl_hwcap2;
+#endif
+
#ifdef SHARED
/* We add a function table to _rtld_global which is then used to
call the function instead of going through the PLT. The result