about summary refs log tree commit diff
path: root/elf/reldep6.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/reldep6.c')
-rw-r--r--elf/reldep6.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/elf/reldep6.c b/elf/reldep6.c
index bf80ec5773..1eeec6c862 100644
--- a/elf/reldep6.c
+++ b/elf/reldep6.c
@@ -48,6 +48,18 @@ main (void)
       exit (1);
     }
 
+  baz = dlsym (h2, "baz");
+  if (baz == NULL)
+    {
+      printf ("cannot get address of \"baz\": %s\n", dlerror ());
+      exit (1);
+    }
+  if (baz () != 31)
+    {
+      printf ("baz() did not return 31\n");
+      exit (1);
+    }
+
   if (dlclose (h1) != 0)
     {
       printf ("closing h1 failed: %s\n", dlerror ());