summaryrefslogtreecommitdiff
path: root/Libraries/LibC
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibC')
-rw-r--r--Libraries/LibC/dlfcn.cpp4
-rw-r--r--Libraries/LibC/dlfcn.h8
2 files changed, 7 insertions, 5 deletions
diff --git a/Libraries/LibC/dlfcn.cpp b/Libraries/LibC/dlfcn.cpp
index 4fac569030..04f742fcc3 100644
--- a/Libraries/LibC/dlfcn.cpp
+++ b/Libraries/LibC/dlfcn.cpp
@@ -101,7 +101,9 @@ void* dlopen(const char* filename, int flags)
return nullptr;
}
- if (!loader->load_from_image(flags)) {
+ if (!loader->load_from_image(flags,
+ 0 // total_tls_size = 0, FIXME: Support TLS when using dlopen()
+ )) {
g_dlerror_msg = String::format("Failed to load ELF object %s", filename);
return nullptr;
}
diff --git a/Libraries/LibC/dlfcn.h b/Libraries/LibC/dlfcn.h
index 619e6df528..9363261ca6 100644
--- a/Libraries/LibC/dlfcn.h
+++ b/Libraries/LibC/dlfcn.h
@@ -31,10 +31,10 @@
__BEGIN_DECLS
#define RTLD_DEFAULT 0
-#define RTLD_LAZY 1
-#define RTLD_NOW 2
-#define RTLD_GLOBAL 3
-#define RTLD_LOCAL 4
+#define RTLD_LAZY 2
+#define RTLD_NOW 4
+#define RTLD_GLOBAL 8
+#define RTLD_LOCAL 16
int dlclose(void*);
char* dlerror();