mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 03:33:33 +08:00
c3fd12a239
* dlfcn/bug-dlsym1.c: New file. * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files. * dlfcn/Makefile (distribute): Add them. (tests): Add bug-dlsym1 here. (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here. ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets. ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
10 lines
181 B
C
10 lines
181 B
C
/* Test module for bug-dlsym1.c test case. */
|
|
|
|
extern int dlopen_test_variable;
|
|
|
|
/* here to get the unresolved symbol in our .so */
|
|
char foo()
|
|
{
|
|
return dlopen_test_variable;
|
|
}
|