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.
2001-05-22 Jakub Jelinek <jakub@redhat.com> * elf/dl-close.c (_dl_close): Save imap->l_reldeps, not map->l_reldeps. * elf/Makefile (distribute): Add reldep4mod[1234].c. (tests): Add reldep4. (modules-names): Add reldep4mod[1234]. (reldep4mod1.so, reldep4mod2.so, reldep4, reldep4.out): New rules. * elf/reldep4.c: New file. * elf/reldep4mod1.c: Likewise. * elf/reldep4mod2.c: Likewise. * elf/reldep4mod3.c: Likewise. * elf/reldep4mod4.c: Likewise.
- Loading branch information
Ulrich Drepper
committed
May 22, 2001
1 parent
80d9c5f
commit 1826d79
Showing
8 changed files
with
90 additions
and
3 deletions.
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
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,40 @@ | ||
#include <dlfcn.h> | ||
#include <mcheck.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
int | ||
main() | ||
{ | ||
int i; | ||
void *h1, *h2; | ||
|
||
mtrace (); | ||
|
||
for (i = 0; i < 3; i++) | ||
{ | ||
h1 = dlopen ("reldep4mod1.so", RTLD_NOW | RTLD_GLOBAL); | ||
if (h1 == NULL) | ||
{ | ||
printf ("cannot open reldep4mod1.so: %s\n", dlerror ()); | ||
exit (1); | ||
} | ||
h2 = dlopen ("reldep4mod2.so", RTLD_NOW | RTLD_GLOBAL); | ||
if (h2 == NULL) | ||
{ | ||
printf ("cannot open reldep4mod2.so: %s\n", dlerror ()); | ||
exit (1); | ||
} | ||
if (dlclose (h1) != 0) | ||
{ | ||
printf ("closing h1 failed: %s\n", dlerror ()); | ||
exit (1); | ||
} | ||
if (dlclose (h2) != 0) | ||
{ | ||
printf ("closing h2 failed: %s\n", dlerror ()); | ||
exit (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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
int foo (void); | ||
|
||
int foo (void) | ||
{ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extern int foo(); | ||
|
||
int bar () | ||
{ | ||
foo(); | ||
} |
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,7 @@ | ||
int foo (void); | ||
|
||
int foo (void) | ||
{ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extern int foo(); | ||
|
||
int bar () | ||
{ | ||
foo(); | ||
} |