[Mingw-users] How to build a library compatible with dlopen?

Back to archive index
Keith Marshall keith****@users*****
Fri Dec 7 01:51:16 JST 2018


On 06/12/18 14:17, Keith Marshall wrote:
> - Support for RTLD_ALL_GLOBAL and RTLD_DEFAULT symbol lookup

Just to clarify:--

- RTLD_ALL_GLOBAL is *not* a standard POSIX macro; it is an internal
  macro, defined privately within MinGW's dlfcn.c implementation, and
  used to represent the aggregate of all loaded DLLs, excluding those
  explicitly loaded by dlopen() with the RTLD_LOCAL attribute; this
  macro corresponds to a (fake) module handle returned by a dlopen()
  call in which NULL is passed as the module file name.

- RTLD_DEFAULT *is* a standard POSIX macro; it is currently marked as
  "reserved for future use", but it seems evident that it is intended
  to represent the aggregate of implicitly loaded DLLs, (i.e. those
  which have been loaded because they have been linked to the process
  image, rather than being explicitly loaded by LoadLibrary(), or
  dlopen() calls).

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20181206/f53bf5bd/attachment.sig>


More information about the MinGW-Users mailing list
Back to archive index