Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update.
* elf/Makefile (tests): Add resolvfail. Add rules to build the program. * elf/resolvfail.c: New file.
- Loading branch information
Ulrich Drepper
committed
Aug 1, 1999
1 parent
4f2793d
commit ff5fad1
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <dlfcn.h> | ||
|
||
static const char obj[] = "testobj1.so"; | ||
|
||
int | ||
main (void) | ||
{ | ||
void *d = dlopen (obj, RTLD_LAZY); | ||
int n; | ||
|
||
if (d == NULL) | ||
{ | ||
printf ("cannot load %s: %s\n", obj, dlerror ()); | ||
return 1; | ||
} | ||
|
||
for (n = 0; n < 10000; ++n) | ||
if (dlsym (d, "does not exist") != NULL) | ||
{ | ||
puts ("dlsym() did not fail"); | ||
return 1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters