【发布时间】:2019-02-23 23:16:07
【问题描述】:
我正在为 arm-linux-androideabi 构建 openssl-1.0.1g,如 wiki.openssl.org 中所述,我的 Android 目标需要运行与位置无关的可执行文件。我在 Makefile 中添加了 -fPIE 和 -pie,现在我可以看到 Elf 文件类型是 DYN(共享对象文件),但是当我将文件复制到目标并尝试运行它时,我收到以下消息;
WARNING: linker: ./openssl has text relocations. This is wasting memory and prevents security hardening. Please fix.
CANNOT LINK EXECUTABLE: cannot locate symbol "__exidx_end" referenced by "./openssl"...
非常感谢任何想法这些消息的含义以及如何解决它们。
【问题讨论】: