diff options
Diffstat (limited to 'elf/constload1.c')
-rw-r--r-- | elf/constload1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/constload1.c b/elf/constload1.c index 4640b77..e0ddae9 100644 --- a/elf/constload1.c +++ b/elf/constload1.c @@ -18,6 +18,10 @@ main (void) error (EXIT_FAILURE, errno, "cannot load module \"constload2.so\""); foo = dlsym (h, "foo"); ret = foo (); + /* Note that the following dlclose() call cannot unload the objects. + Due to the introduced relocation dependency constload2.so depends + on constload3.so and the dependencies of constload2.so on constload3.so + is not visible to ld.so since it's done using dlopen(). */ if (dlclose (h) != 0) { puts ("failed to close"); |