LD

xiaoxiao2021-02-28  33

1.指定系统库目录路径(程序编译阶段指定) # export LD_LIBRARY_PATH="/system/lib":"/system/lib64":$LD_LIBRARY_PATH 2.指定系统库目录(程序运行阶段指定) # export LD_LIBRARY_PATH="/system/lib":"/system/lib64":$LD_LIBRARY_PATH 3.指定load库文件路径 # export LD_PRELOAD="/usr/lib/libcommon.so" 4.替换结束,要还原函数调用关系,用命令 # unset LD_PRELOAD 5.想查询依赖关系 # ldd ./main

 

转载请注明原文地址: https://www.6miu.com/read-2623986.html

最新回复(0)