diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-09-19 14:42:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-09-19 14:42:12 +0000 |
commit | 1ee2ff2053aeaa43987275c3aad5e6e42716f50e (patch) | |
tree | 028c11f16cc80083734c79209a7e72f5fb7d2c48 /elf/unload7mod1.c | |
parent | 0466106efce2eedc4bc874280ecadd5cd931281f (diff) | |
download | glibc-1ee2ff2053aeaa43987275c3aad5e6e42716f50e.tar.gz |
* elf/dl-close.c (_dl_close): If dependency is not unloaded make
sure no reference to the unloaded map's search list remains in the
dependency's scope.
2006-09-16 Jakub Jelinek <jakub@redhat.com>
* elf/Makefile: Add rules to build and run unload7 test.
* elf/unload7.c: New test.
* elf/unload7mod1.c: New file.
* elf/unload7mod2.c: New file.
Diffstat (limited to 'elf/unload7mod1.c')
-rw-r--r-- | elf/unload7mod1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/unload7mod1.c b/elf/unload7mod1.c new file mode 100644 index 0000000000..7435adce2c --- /dev/null +++ b/elf/unload7mod1.c @@ -0,0 +1,11 @@ +#include <dlfcn.h> +#include <stdio.h> + +int +foo (int i) +{ + if (dlsym (RTLD_DEFAULT, "unload7_nonexistent_symbol") == NULL) + return 1; + puts ("dlsym returned non-NULL"); + return 0; +} |