natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the list has the symbol.
* java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the list has the symbol. (init): Call add_library on the program itself. * prims.cc (JvRunMain): Initialize Runtime before searching for `main'. (_Jv_RunMain): Likewise. From-SVN: r43413
This commit is contained in:
parent
21ea1c28cf
commit
6728a61d1f
3 changed files with 23 additions and 3 deletions
|
@ -69,7 +69,7 @@ _Jv_FindSymbolInExecutable (const char *symname)
|
|||
return r;
|
||||
}
|
||||
|
||||
return lt_dlsym (NULL, symname);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -199,6 +199,9 @@ java::lang::Runtime::init (void)
|
|||
finalize_on_exit = false;
|
||||
#ifdef USE_LTDL
|
||||
lt_dlinit ();
|
||||
lt_dlhandle self = lt_dlopen (NULL);
|
||||
if (self != NULL)
|
||||
add_library (self);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue