aboutsummaryrefslogtreecommitdiff
path: root/elf/ifuncmain6pie.c
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2021-02-13 18:49:56 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2021-02-13 18:49:56 -0300
commitcde88e739832faa9ef82fdadb01efdf9d66a9a00 (patch)
tree394fe452e6f70936bc5be2a6a0e8365392a8c0db /elf/ifuncmain6pie.c
parent148200bda390e59c9c33193e2f6d73abcef417e7 (diff)
parente9db77683e10c589529f452710868c3bde2c6d3f (diff)
downloadglibc-ibm/2.28/master.tar
glibc-ibm/2.28/master.tar.gz
glibc-ibm/2.28/master.tar.bz2
glibc-ibm/2.28/master.zip
Merge branch release/2.28/master into ibm/2.28/masteribm/2.28/master
Diffstat (limited to 'elf/ifuncmain6pie.c')
-rw-r--r--elf/ifuncmain6pie.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/elf/ifuncmain6pie.c b/elf/ifuncmain6pie.c
index 04faeb86ef..4a01906836 100644
--- a/elf/ifuncmain6pie.c
+++ b/elf/ifuncmain6pie.c
@@ -9,7 +9,6 @@
#include "ifunc-sel.h"
typedef int (*foo_p) (void);
-extern foo_p foo_ptr;
static int
one (void)
@@ -28,20 +27,17 @@ foo_ifunc (void)
}
extern int foo (void);
-extern foo_p get_foo (void);
+extern int call_foo (void);
extern foo_p get_foo_p (void);
-foo_p my_foo_ptr = foo;
+foo_p foo_ptr = foo;
int
main (void)
{
foo_p p;
- p = get_foo ();
- if (p != foo)
- abort ();
- if ((*p) () != -30)
+ if (call_foo () != -30)
abort ();
p = get_foo_p ();
@@ -52,12 +48,8 @@ main (void)
if (foo_ptr != foo)
abort ();
- if (my_foo_ptr != foo)
- abort ();
if ((*foo_ptr) () != -30)
abort ();
- if ((*my_foo_ptr) () != -30)
- abort ();
if (foo () != -30)
abort ();