libc: allow RTLD_GLOBAL for dlopen

issue #2488
This commit is contained in:
Sebastian Sumpf 2016-07-28 18:03:02 +02:00 committed by Christian Helmuth
parent 1e9ad9e3d9
commit 17df52bfbd

View File

@ -54,7 +54,7 @@ static Shared_object *to_object(void *handle)
void *dlopen(const char *name, int mode)
{
int supported = RTLD_LAZY | RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE;
int supported = RTLD_LAZY | RTLD_NOW | RTLD_LOCAL | RTLD_GLOBAL | RTLD_NODELETE;
/* error on unsupported mode values */
if (mode & ~supported) {