"cannot restoresegment prot after reloc: Permission denied"
如果你的linux发行版开启了selinux,你就可能碰到这样
"cannot restoresegment prot after reloc: Permission denied"
的错误。原因是你的程序要text reloaction,但是selinux不允许。只要修改一下selinux策略,允许library text reloaction就可以了!
举个例子,你碰到问题的so文件是xxx.so,
那么
chcon -t texrel_shlib_t test.so
就可以了
Date: 2012-06-28 17:08:34 CST
HTML generated by org-mode 6.33x in emacs 23