aboutsummaryrefslogtreecommitdiff
path: root/elf/ifuncmain7pic.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/ifuncmain7pic.c')
-rw-r--r--elf/ifuncmain7pic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/elf/ifuncmain7pic.c b/elf/ifuncmain7pic.c
new file mode 100644
index 0000000..fc37bf4
--- /dev/null
+++ b/elf/ifuncmain7pic.c
@@ -0,0 +1,7 @@
+/* Test local STT_GNU_IFUNC symbols with -fPIC:
+
+ 1. Direct function call.
+ 2. Function pointer.
+ */
+
+#include "ifuncmain7.c"