"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