#include <stdlib.h>
+extern void *__dso_handle __attribute__ ((__weak__));
+
int
main (void)
{
void (*fp) (void *);
int v = 0;
+ if (&__dso_handle == NULL)
+ {
+ puts ("__dso_handle not available, cannot perform the test");
+ exit (0);
+ }
+
h = dlopen (fname, RTLD_NOW);
if (h == NULL)
{
#include <stdio.h>
#include <stdlib.h>
+extern void *__dso_handle __attribute__ ((__weak__));
int
main (void)
void (*fp) (void *);
int v = 0;
+ if (&__dso_handle == NULL)
+ {
+ puts ("__dso_handle not available, cannot perform the test");
+ exit (0);
+ }
+
h = dlopen (fname, RTLD_LAZY);
if (h == NULL)
{