为android构建独立于位置的可执行文件的问题
我正在为arm linux AndroidABI构建openssl-1.0.1g,如wiki.openssl.org上所述,我的Android目标需要运行独立于位置的可执行文件。我在Makefile中添加了-fPIE和-pie,现在我可以看到Elf文件类型是DYN(共享对象文件),但是当我将文件复制到目标并尝试运行它时,我得到以下消息为android构建独立于位置的可执行文件的问题,android,c,openssl,Android,C,Openssl,我正在为arm linux AndroidABI构建openssl-1.0.1g,如wiki.openssl.org上所述,我的Android目标需要运行独立于位置的可执行文件。我在Makefile中添加了-fPIE和-pie,现在我可以看到Elf文件类型是DYN(共享对象文件),但是当我将文件复制到目标并尝试运行它时,我得到以下消息 WARNING: linker: ./openssl has text relocations. This is wasting memory and preve
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"...
非常感谢您对这些消息的含义以及如何解决它们的任何想法。似乎我只需要链接libc来定义这个符号