[utils] Correctly convert MONO_DL_LOCAL to RTLD_LOCAL (mono/mono#18121)
authorRyan Lucia <rylucia@microsoft.com>
Wed, 11 Dec 2019 15:42:10 +0000 (10:42 -0500)
committerGitHub <noreply@github.com>
Wed, 11 Dec 2019 15:42:10 +0000 (10:42 -0500)
commita2398c8acd0e6f12b6e0685f9ad810667cb46cb4
tree3bfebfebdb32c29ec7bcf8c2b810ae8616f25a0c
parent199eb210509b9aaf7be0801dc5fa75bbce7ce48b
[utils] Correctly convert MONO_DL_LOCAL to RTLD_LOCAL (mono/mono#18121)

On Linux, neither flag being specified will result in a default of RTLD_LOCAL. Unfortunately, on MacOS it's the opposite - the default is RTLD_GLOBAL. This means currently there is no way to set RTLD_LOCAL on Macs, so despite the potential for this to break someone it directly contradicts our documentation and needs to be changed.

Commit migrated from https://github.com/mono/mono/commit/0e05bda2356e453e6ab5ae8745c86bddf82b9ce6
src/mono/mono/utils/mono-dl-posix.c
src/mono/mono/utils/mono-dl-wasm.c