【发布时间】:2015-06-15 21:34:20
【问题描述】:
我正在尝试使用 debuild -i -us -uc -b 构建一个 .deb 包,最后我看到了:
Now running lintian...
warning: the authors of lintian do not recommend running it with root privileges!
W: libluajit-5.1-2: hardening-no-relro usr/lib/powerpc64le-linux-gnu/libluajit-5.1.so.2.1.0
E: libluajit-5.1-2: shlib-with-non-pic-code usr/lib/powerpc64le-linux-gnu/libluajit-5.1.so.2.1.0
W: luajit: hardening-no-relro usr/bin/luajit-2.1.0-alpha
W: luajit: binary-without-manpage usr/bin/luajit-2.1.0-alpha
Finished running lintian.
我有一种预感,我没有定义一个“PIC代码设置”,它必须在每个外部函数的开头:
The following code might appear in a PIC code setup sequence to compute
the distance from a function entry point to the TOC base:
addis 2,12,.TOC.-func@ha
addi 2,2,.TOC.-func@l
由ABI 指定,第 99 页。
但是我找不到非 PIC 的符号。或者可能是一些未使用-fPIC 编译的相关文件?
信息:
系统架构:ppc64le
编译.so库:gcc -shared -fPIC
【问题讨论】: