[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT PATCH v2 1/1] lib/posix-libdl: Add dlvsym stub



Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxx>
Reviewed-by: Sergiu Moga <serjueovp@xxxxxxxxx>
---
 lib/posix-libdl/exportsyms.uk   | 3 ++-
 lib/posix-libdl/include/dlfcn.h | 1 +
 lib/posix-libdl/stubs.c         | 6 ++++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/posix-libdl/exportsyms.uk b/lib/posix-libdl/exportsyms.uk
index 77c7a54..d570a57 100644
--- a/lib/posix-libdl/exportsyms.uk
+++ b/lib/posix-libdl/exportsyms.uk
@@ -3,4 +3,5 @@ dlclose
 dlsym
 dlerror
 dladdr
-dlinfo
\ No newline at end of file
+dlinfo
+dlvsym
diff --git a/lib/posix-libdl/include/dlfcn.h b/lib/posix-libdl/include/dlfcn.h
index 706245a..6cb6cf5 100644
--- a/lib/posix-libdl/include/dlfcn.h
+++ b/lib/posix-libdl/include/dlfcn.h
@@ -58,6 +58,7 @@ typedef struct {
 } Dl_info;
 int dladdr(const void *, Dl_info *);
 int dlinfo(void *, int, void *);
+void *dlvsym(void *handle, const char *symbol, const char *version);
 
 #ifdef __cplusplus
 }
diff --git a/lib/posix-libdl/stubs.c b/lib/posix-libdl/stubs.c
index dbfac7d..4d1ea3e 100644
--- a/lib/posix-libdl/stubs.c
+++ b/lib/posix-libdl/stubs.c
@@ -67,3 +67,9 @@ int dlinfo(void *handle __unused, int request __unused, void 
*info __unused)
 {
        return 0;
 }
+
+void *dlvsym(void *handle __unused, const char *symbol __unused,
+               const char *version __unused)
+{
+       return 0;
+}
-- 
2.27.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.