http://blog.csdn.net/linuw/article/details/6048307
__attribute__ ((constructor))指定的函數在共享庫loading的時候調用,__attribute__ ((destructor))指定的函數在共享庫unloading的時候調用。
so代碼:
app代碼:
http://blog.csdn.net/linuw/article/details/6048307
__attribute__ ((constructor))指定的函數在共享庫loading的時候調用,__attribute__ ((destructor))指定的函數在共享庫unloading的時候調用。
so代碼:
app代碼: