dlsym
using dlsym for tracking mmap
I am trying to measure how much memory does some program mmaps. I am using the following code: void * mmap (void * addr, size_t len, int prot, int flags, int fildes, off_t off) {[详细]
2023-04-11 17:41 分类:问答How can dlsym successfully import function from stripped binary library?
It\'s weird that dlsym can import functions from stripped binaries. Can anyone tell me why/how? === FILE: a.c ===[详细]
2023-03-22 08:08 分类:问答Factory Pattern in C++: generating explicit createInstance()-Method automatically
i have the problem in writing a C++ framework, that users should have less overhead than possible to use it. Users can publish their work to the frameworks by creating a shared library that contains a[详细]
2023-03-17 03:53 分类:问答Load named unexported symbols with dlsym?
Is it possible to load a named unexported symbol from a framework using dlsym? The symbol I\'m trying to import has a name by which it is referred to within the framework. It is a function I need to[详细]
2023-03-06 05:39 分类:问答C --> malloc --> dlsym
I have used dlsym() to invoke my version of malloc, instead of the default library malloc: lt_malloc = (void*(*)(size_t))dlsym(RTLD_NEXT, \"malloc\");[详细]
2023-02-21 03:20 分类:问答How to detect at runtime whether symbols are stripped?
In my C++ program, how can I detect programmatically开发者_开发知识库 at runtime whether symbols have been stripped via the \'strip\' gnu development tool on Linux?[详细]
2023-02-13 18:14 分类:问答Why does this dynamic library loading code work with gcc?
Background: I\'ve found myself with the unenviable task of porting a C++ GNU/Linux application over to Windows. One of the things this application does is search for shared libraries on specific path[详细]
2023-02-13 05:20 分类:问答Calling function by name using dlsym in iOS
Can\'t I call a function by name in iOS? I have a C function called getstring. I am calling it as follows:[详细]
2023-02-12 02:02 分类:问答Setting my lib for LD_PRELOAD makes some processes produce loader errors
I get the following error when I try to run a script I have only execution access for: uname: symbol lookup error: /home/dumindara/random/sotest/a.out: undefined symbol: dlsym[详细]
2023-01-29 15:47 分类:问答dynamic_cast fails when used with dlopen/dlsym
Intro Let me apologise upfront for the long question. It is as short as I could make it, which is, unfortunately, not very short.[详细]
2022-12-21 17:33 分类:问答