然后,您可以将库装入到您的地址空间中并使用函数指针调用方法。
You could then load the library into your address space and call the methods using function Pointers.
在pseudo中,为dlsym (RTLD_NEXT,“open ”)返回的地址储存在名为real_open的函数指针中。
In pseudo, the address returned for dlsym (RTLD_NEXT, "open") is stored in a function pointer named real_open .
每个堆栈框架都有一个指向前一个堆栈框架的指针(称为回链指针),还有一个当它调用其他函数时用于存放返回地址的空间。
Each stack frame holds a pointer to the previous stack frame (called the back chain pointer), as well as a space for return addresses for when it calls other functions.
只要函数的地址没有传递给其他程序或存储在指针中,它就不应该从其他代码中调用。
As long as the address of the function isn't passed to some other routine or stored in a pointer, it should not be callable from other code.
你甚至能够设置一个指针表,里面放置接口的函数地址,返回出来这个表的地址来用。
You could even set up a table of Pointers with the addresses of the functions of the interface, and return the address of a pointer to this table.
如果程序需要为一个窗口生成子类,就在函数指针里填上自己函数的地址。
If the application needs to subclass a window, it fills in the function pointer with the address of its own function.
你可以很好地废弃的函数名(指针)来获取函数地址。
You can very well dereference the function name (which is a pointer) to obtain the function at that address.
你可以很好地废弃的函数名(指针)来获取函数地址。
You can very well dereference the function name (which is a pointer) to obtain the function at that address.
应用推荐