Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: binutils-2.20/dlwrap.h

Issue 8713008: Add dlwrap.c to binutils to simulate dlopen/dlsym for gold plugin (Closed)
Patch Set: x Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: binutils-2.20/dlwrap.h
new file mode 100644
--- /dev/null
+++ b/binutils-2.20/dlwrap.h
@@ -0,0 +1,24 @@
+#ifndef __DLWRAP_H
+/* Drop-in replacement for dlfcn.h */
+#ifdef __cplusplus
+extern "C" {
+void *pnacl_dlopen(const char *filename, int flag);
+char *pnacl_dlerror(void);
+void *pnacl_dlsym(void *handle, const char *symbol);
+int pnacl_dlclose(void *handle);
+#ifdef __cplusplus
+#define dlopen pnacl_dlopen
+#define dlerror pnacl_dlerror
+#define dlsym pnacl_dlsym
+#define dlclose pnacl_dlclose
+#define RTLD_NOW 0x2
« no previous file with comments | « binutils-2.20/bfd/plugin.c ('k') | binutils-2.20/dlwrap.c » ('j') | binutils-2.20/dlwrap.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698