dlopen-RTLD_NOLOAD.patch 867 B

123456789101112131415
  1. the option RTLOD_NOLOAD is not portable. (not available in uClibc)
  2. https://evolvis.org/scm/viewvc.php/jalimo/trunk/oe-overlay/packages/openjdk/openjdk-6-6b18-1.8/icedtea-jdk-RTLD_NOLOAD.patch?revision=840&view=markup&pathrev=867
  3. --- w-openjdk-6.orig/openjdk-6/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c 2011-02-28 17:06:50.000000000 +0100
  4. +++ w-openjdk-6/openjdk-6/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c 2011-08-10 14:41:26.700571862 +0200
  5. @@ -51,7 +51,7 @@
  6. {
  7. const char *libName = (*env)->GetStringUTFChars(env, jLibName, NULL);
  8. // look up existing handle only, do not load
  9. - void *hModule = dlopen(libName, RTLD_NOLOAD);
  10. + void *hModule = dlopen(libName, RTLD_LAZY);
  11. dprintf2("-handle for %s: %u\n", libName, hModule);
  12. (*env)->ReleaseStringUTFChars(env, jLibName, libName);
  13. return (jlong)hModule;