Added support for dladdr()
dladdr() is a GNU extension function, which allows the caller to retrieve symbol information for a specified memory address. It is useful for things like generating backtrace information at runtime. Change-Id: I3a1def1a6c9c666d93e1e97b7d260dfa5b9b79a9
This commit is contained in:
committed by
Garmin Android technology group
parent
ede2e75f49
commit
e2a8b1fd19
@@ -14,12 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <dlfcn.h>
|
||||
/* These are stubs for functions that are actually defined
|
||||
* in the dynamic linker (dlfcn.c), and hijacked at runtime.
|
||||
*/
|
||||
void *dlopen(const char *filename, int flag) { return 0; }
|
||||
char *dlerror(void) { return 0; }
|
||||
const char *dlerror(void) { return 0; }
|
||||
void *dlsym(void *handle, const char *symbol) { return 0; }
|
||||
int dladdr(void *addr, Dl_info *info) { return 0; }
|
||||
int dlclose(void *handle) { return 0; }
|
||||
|
||||
#ifdef __arm__
|
||||
|
||||
Reference in New Issue
Block a user