mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
* elf/Makefile: Add no modules for nodelete test. * elf/nodelmod3.c: New file. * elf/nodelmod4.c: New file. * elf/nodelete.c: Also test case where dependency of dlopen() object is marked nodelete. * elf/nodlopen.c: New file. * elf/nodlopenmod.c: New file.cvs/glibc-2-2-branch
7 changed files with 89 additions and 4 deletions
@ -0,0 +1,7 @@ |
|||
extern int var_in_mod4; |
|||
|
|||
int * |
|||
addr (void) |
|||
{ |
|||
return &var_in_mod4; |
|||
} |
|||
@ -0,0 +1 @@ |
|||
int var_in_mod4 = 99; |
|||
@ -0,0 +1,15 @@ |
|||
#include <dlfcn.h> |
|||
#include <stdio.h> |
|||
|
|||
int |
|||
main (void) |
|||
{ |
|||
if (dlopen ("nodlopenmod.so", RTLD_LAZY) != NULL) |
|||
{ |
|||
puts ("opening \"nodlopenmod.so\" succeeded, FAIL"); |
|||
return 1; |
|||
} |
|||
|
|||
puts ("opening \"nodlopenmod.so\" failed, OK"); |
|||
return 0; |
|||
} |
|||
@ -0,0 +1 @@ |
|||
int a = 42; |
|||
Loading…
Reference in new issue