Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: fusl/src/ldso/__dlsym.c

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 months 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
« no previous file with comments | « fusl/src/ldso/BUILD.gn ('k') | fusl/src/ldso/dl_iterate_phdr.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/ldso/__dlsym.c
diff --git a/fusl/src/ldso/__dlsym.c b/fusl/src/ldso/__dlsym.c
new file mode 100644
index 0000000000000000000000000000000000000000..99aafdf91b95c3d5a513b73f5fb66b764821366f
--- /dev/null
+++ b/fusl/src/ldso/__dlsym.c
@@ -0,0 +1,13 @@
+#include <dlfcn.h>
+#include "libc.h"
+
+__attribute__((__visibility__("hidden")))
+void __dl_seterr(const char *, ...);
+
+static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
+{
+ __dl_seterr("Symbol not found: %s", s);
+ return 0;
+}
+
+weak_alias(stub_dlsym, __dlsym);
« no previous file with comments | « fusl/src/ldso/BUILD.gn ('k') | fusl/src/ldso/dl_iterate_phdr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698