Run check-localpltk/textrel/execstack over ld.so.
[glibc.git] / sysdeps / generic / ifunc-sel.h
blob6a27b69c5babaefab1c778f6d541ff8d14938d4a
1 /* Used by the elf ifunc tests. */
2 #ifndef ELF_IFUNC_SEL_H
3 #define ELF_IFUNC_SEL_H 1
5 extern int global;
7 static inline void *
8 ifunc_sel (int (*f1) (void), int (*f2) (void), int (*f3) (void))
10 switch (global)
12 case 1:
13 return f1;
14 case -1:
15 return f2;
16 default:
17 return f3;
21 static inline void *
22 ifunc_one (int (*f1) (void))
24 return f1;
26 #endif