From 2f083d7511460b3beea2df165c3e43742f73f3c9 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 3 Jun 2009 16:21:40 -0700 Subject: Test for ELF IFUNC functionality. --- elf/ifuncmain2.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 elf/ifuncmain2.c (limited to 'elf/ifuncmain2.c') diff --git a/elf/ifuncmain2.c b/elf/ifuncmain2.c new file mode 100644 index 0000000000..cd9b2c8352 --- /dev/null +++ b/elf/ifuncmain2.c @@ -0,0 +1,16 @@ +/* Test calling one STT_GNU_IFUNC function with 3 different + STT_GNU_IFUNC definitions. */ + +#include + +int global = -1; + +extern int foo1 (void); + +int +main (void) +{ + if (foo1 () != -1) + abort (); + return 0; +} -- cgit v1.2.1