我是靠谱客的博主 天真花瓣,最近开发中收集的这篇文章主要介绍linux程序执行失败,调试时提示 .dynamic section for .so.* is not at the expected address,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
调试现象: (gdb) r Starting program: /usr/local/sdata/sbin/sdatad warning: .dynamic section for "/lib/libblkid.so.1" is not at the expected address warning: difference appears to be caused by prelink, adjusting expectations warning: .dynamic section for "/lib/libdevmapper.so.1.02" is not at the expected address warning: difference appears to be caused by prelink, adjusting expectations warning: .dynamic section for "/lib/libsepol.so.1" is not at the expected address warning: difference appears to be caused by prelink, adjusting expectations [Thread debugging using libthread_db enabled] Detaching after fork from child process 13247. Program exited normally.
解决方案:
一开始怀疑是动态库不一致,但实际上同类型的系统编译出的程序可以通用运行,例如el5.2 i686编译出的程序可以在el5.5 i686上运行。
最终解决方法:
删除程序对应的lock文件
最后
以上就是天真花瓣为你收集整理的linux程序执行失败,调试时提示 .dynamic section for .so.* is not at the expected address的全部内容,希望文章能够帮你解决linux程序执行失败,调试时提示 .dynamic section for .so.* is not at the expected address所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复