src/solaris/native/sun/awt/awt_LoadLibrary.c

Print this page
rev 7983 : 8024854: Basic changes and files to build the class library on AIX
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com
Reviewed-by:

*** 35,44 **** --- 35,59 ---- #include <sys/param.h> #include <sys/utsname.h> #include "awt_Plugin.h" + #ifdef AIX + /* AIX does not provide the 'dladdr' function. But fortunately, we've + * already implemented it in the HotSpot, because we need it there as + * well (see hotspot/src/os/aix/vm/porting_aix.{hpp,cpp}). + */ + typedef struct { + const char *dli_fname; /* file path of loaded library */ + /* void *dli_fbase; // doesn't make sence on AIX */ + const char *dli_sname; /* symbol name; "" if not known */ + void *dli_saddr; /* address of *entry* of function; not function descriptor; */ + } Dl_info; + + extern int dladdr(void *addr, Dl_info *info); // use the HotSpot implementation from libjvm.so + #endif + #ifdef DEBUG #define VERBOSE_AWT_DEBUG #endif static void *awtHandle = NULL;