我是靠谱客的博主 天真花瓣,这篇文章主要介绍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程序执行失败,调试时提示内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(154)

评论列表共有 0 条评论

立即
投稿
返回
顶部