/elf/ |
A D | tst-array5.c | 7 char *p = strrchr (argv [0], '/'); in preinit_0() local 9 if (p == NULL) in preinit_0() 12 p++; in preinit_0() 13 size_t len = strlen (p); in preinit_0() 15 write (STDOUT_FILENO, p, len); in preinit_0() 28 char *p = strrchr (argv [0], '/'); in init_0() local 30 if (p == NULL) in init_0() 33 p++; in init_0() 34 size_t len = strlen (p); in init_0() 36 write (STDOUT_FILENO, p, len); in init_0()
|
A D | tst-tlsmod18a.c | 12 int *p = &var; in test() local 14 asm volatile ("" : "+r" (p)); in test() 15 if (p == NULL || *p != 4) in test() 17 printf ("fail %d %p\n", N, p); in test()
|
A D | ifuncmain1.c | 31 foo_p p; in main() local 47 p = get_foo_p (); in main() 48 if (p != foo) in main() 50 if (ret_foo != -1 || (*p) () != ret_foo) in main() 53 p = get_foo_hidden_p (); in main() 54 if (ret_foo_hidden != 1 || (*p) () != ret_foo_hidden) in main() 57 p = get_foo_protected_p (); in main() 58 if (p != foo_protected) in main() 60 if (ret_foo_protected != 0 || (*p) () != ret_foo_protected) in main()
|
A D | ifuncmain1vis.c | 52 foo_p p; in main() local 64 p = get_foo_p (); in main() 65 if (p != foo) in main() 69 if (ret_foo != -30 || (*p) () != ret_foo) in main() 72 p = get_foo_hidden_p (); in main() 75 if (ret_foo_hidden != 1 || (*p) () != ret_foo_hidden) in main() 78 p = get_foo_protected_p (); in main() 79 if (p == foo_protected) in main() 83 if (ret_foo_protected != 0 || (*p) () != ret_foo_protected) in main()
|
A D | ifuncmain3.c | 38 foo_p p; in main() local 49 p = dlsym (h, "foo"); in main() 50 if (p == NULL) in main() 55 if ((*p) () != -1) in main() 72 p = (*f) (); in main() 73 if (p != foo) in main() 94 p = (*f) (); in main() 97 if (*ret != 1 || (*p) () != *ret) in main() 114 p = (*f) (); in main() 115 if (p == foo_protected) in main() [all …]
|
A D | tst-gnu2-tls1.c | 34 int *p; in do_test() local 36 p = get_gd (); in do_test() 38 if (*p != 3 || !test_gd (3)) in do_test() 41 p = get_ld (); in do_test() 43 if (*p != 4 || !test_ld (4)) in do_test()
|
A D | tst-tls12.c | 4 p = &a##N; \ 5 if (p->a != S || p->b != S + 1 || p->c != S + 2) \ 11 struct A *p; in do_test() local
|
A D | ifuncmain7.c | 50 foo_p p; in main() local 52 p = get_foo (); in main() 53 if (p != foo) in main() 55 if ((*p) () != -30) in main() 58 p = get_foo_p (); in main() 59 if (p != foo) in main() 61 if ((*p) () != -30) in main()
|
A D | ifuncmain5.c | 27 foo_p p; in main() local 29 p = get_foo (); in main() 30 if ((*p) () != -1) in main() 33 p = get_foo_protected (); in main() 34 if ((*p) () != 0) in main()
|
A D | nodelete.c | 33 void *p; in do_test() local 43 p = dlopen ("nodelmod1.so", RTLD_LAZY); in do_test() 44 if (p == NULL) in do_test() 55 varp = dlsym (p, "var1"); in do_test() 67 if (dlclose (p) != 0) in do_test() 98 if (p == NULL) in do_test() 109 varp = dlsym (p, "var2"); in do_test() 121 if (dlclose (p) != 0) in do_test() 152 if (p == NULL) in do_test() 163 fctp = dlsym (p, "addr"); in do_test() [all …]
|
A D | tst-array5dep.c | 7 char *p = strrchr (argv [0], '/'); in init_0() local 9 if (p == NULL) in init_0() 12 p++; in init_0() 13 size_t len = strlen (p); in init_0() 15 write (STDOUT_FILENO, p, len); in init_0()
|
A D | tst-dlmopen-dlerror.c | 38 for (char *p = stpcpy (buffer, "does not exist "); p < buffer_end; ++p) in do_test() local 40 p[0] = 'X'; in do_test() 41 p[1] = '\0'; in do_test()
|
A D | noload.c | 9 void *p; in main() local 15 p = dlopen ("testobj1.so", RTLD_LAZY | RTLD_NOLOAD); in main() 16 if (p == NULL) in main() 24 dlclose (p); in main() 38 p = dlopen ("testobj5.so", RTLD_LAZY); in main() 40 if (p == NULL) in main() 62 if (dlclose (p) != 0) in main()
|
A D | tst-tlsmod17a.c | 14 int *p = &CONCAT (v, N); in CONCAT() local 16 asm volatile ("" : "+r" (p)); in CONCAT() 17 if (p == NULL || *p != 4) in CONCAT() 19 printf ("fail %d %p\n", N, p); in CONCAT()
|
A D | tst-ifunc-fault-lazy.c | 33 volatile char *volatile p = NULL; in implementation() local 34 *p = 0; in implementation() 41 volatile char *volatile p = NULL; in __typeof__() local 42 *p = 0; in __typeof__()
|
A D | tst-tls11.c | 4 p = f##N##a (); \ 5 if (p->a != S || p->b != S + 1 || p->c != S + 2) \ 11 struct A *p; in do_test() local
|
A D | tst-unique1mod2.c | 12 f (int *p) in f() argument 14 return &var != p || *p != 1; in f()
|
A D | tst-unique2mod2.c | 12 f (int *p) in f() argument 14 return &var != p || *p != 1; in f()
|
A D | tst-dlopenrpathmod.c | 25 void *p = dlopen ("in-subdir.so", RTLD_LAZY|RTLD_LOCAL); in foo() local 26 if (p != NULL) in foo() 28 dlclose (p); in foo()
|
A D | dl-exception.c | 117 for (const char *p = fmt; *p != '\0'; ++p) in rtld_hidden_def() local 118 if (*p == '%') in rtld_hidden_def() 120 ++p; in rtld_hidden_def() 121 switch (*p) in rtld_hidden_def() 134 ++p; in rtld_hidden_def() 176 for (const char *p = fmt; *p != '\0'; ++p) in rtld_hidden_def() local 177 if (*p == '%') in rtld_hidden_def() 179 ++p; in rtld_hidden_def() 180 switch (*p) in rtld_hidden_def() 219 ++p; in rtld_hidden_def() [all …]
|
A D | ifuncmain6pie.c | 38 foo_p p; in main() local 43 p = get_foo_p (); in main() 44 if (p != foo) in main() 46 if ((*p) () != -30) in main()
|
A D | tst-tls-ie.c | 55 void *p = xdlopen (mod, RTLD_NOW); in load_and_access() local 57 void (*f) (void) = (void (*) (void))xdlsym (p, func); in load_and_access() 59 return p; in load_and_access() 97 void *p = dlopen ("tst-tls-ie-mod6.so", RTLD_NOW); in do_test() local 98 if (p != NULL) in do_test()
|
A D | tst-tls10.c | 7 p = f##N##a (); \ 8 if (p->a != S || p->b != S + 1 || p->c != S + 2) \ 14 struct A *p; in do_test() local
|
A D | tst-tls-ie-dlmopen.c | 56 void *p = xdlmopen (lmid, mod, RTLD_NOW); in load_and_access() local 58 void (*f) (void) = (void (*) (void))xdlsym (p, func); in load_and_access() 60 return p; in load_and_access() 98 void *p = dlmopen (LM_ID_BASE, "tst-tls-ie-mod4.so", RTLD_NOW); in do_test() local 99 if (p != NULL) in do_test()
|
A D | tst-dlopenrpath.c | 52 void *p = dlopen ("in-subdir.so", RTLD_LAZY|RTLD_LOCAL); in do_test() local 53 if (p != NULL) in do_test() 56 dlclose (p); in do_test()
|