Mercurial > pub > dyncall > dyncall
comparison dynload/dynload_unix.c @ 365:1d03a3a4220d
- fixing issue after having aliased gnu thiscalls to cdecl with a duped switch label
author | Tassilo Philipp |
---|---|
date | Tue, 14 Apr 2020 19:58:31 +0200 |
parents | 2f64957d6a46 |
children | ad5f9803f52f |
comparison
equal
deleted
inserted
replaced
364:3bdd326dc269 | 365:1d03a3a4220d |
---|---|
103 * from Solaris) */ | 103 * from Solaris) */ |
104 #if ((defined(RTLD_DI_LINKMAP) && defined(RTLD_SELF)) || defined(OS_SunOS)) && !defined(DL_USE_GLIBC_ITER_PHDR) | 104 #if ((defined(RTLD_DI_LINKMAP) && defined(RTLD_SELF)) || defined(OS_SunOS)) && !defined(DL_USE_GLIBC_ITER_PHDR) |
105 | 105 |
106 #include <link.h> | 106 #include <link.h> |
107 | 107 |
108 /* @@@ if called from within a .so, passing NULL will return .so name, whereas passing result of dlLoadLibrary(NULL) returns process' name */ | |
108 int dlGetLibraryPath(DLLib* pLib, char* sOut, int bufSize) | 109 int dlGetLibraryPath(DLLib* pLib, char* sOut, int bufSize) |
109 { | 110 { |
110 struct link_map* p = NULL; | 111 struct link_map* p = NULL; |
111 int l = -1; | 112 int l = -1; |
112 if(dlinfo(pLib ? pLib : RTLD_SELF, RTLD_DI_LINKMAP, &p) == 0) | 113 if(dlinfo(pLib ? pLib : RTLD_SELF, RTLD_DI_LINKMAP, &p) == 0) |