about summary refs log tree commit diff
path: root/sysdeps/x86/tst-ifunc-cpu1-main.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-01-03 15:02:33 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-01-03 15:02:33 -0800
commit9b5a06c242e640d4af84a031e96ca47bcf595caf (patch)
tree0304299bad3c57a945fb33f077c31e32f37a8bc1 /sysdeps/x86/tst-ifunc-cpu1-main.c
parent5d7dd1ca8436db8a1444310d3305ca141dc925ac (diff)
downloadglibc-9b5a06c242e640d4af84a031e96ca47bcf595caf.tar.gz
glibc-9b5a06c242e640d4af84a031e96ca47bcf595caf.tar.xz
glibc-9b5a06c242e640d4af84a031e96ca47bcf595caf.zip
Make __get_cpu_features hidden hjl/pr14955
Add static-init-arch.oS to libc_nonshared.a so that __get_cpu_features
can be used in other shared libraries.
Diffstat (limited to 'sysdeps/x86/tst-ifunc-cpu1-main.c')
-rw-r--r--sysdeps/x86/tst-ifunc-cpu1-main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/x86/tst-ifunc-cpu1-main.c b/sysdeps/x86/tst-ifunc-cpu1-main.c
new file mode 100644
index 0000000000..37c16e2e1e
--- /dev/null
+++ b/sysdeps/x86/tst-ifunc-cpu1-main.c
@@ -0,0 +1,10 @@
+/* Test function pointer to local STT_GNU_IFUNC function.  */
+
+extern void (*foo_ptr) (void);
+
+int
+main (void)
+{
+  foo_ptr ();
+  return 0;
+}