Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为android构建独立于位置的可执行文件的问题_Android_C_Openssl - Fatal编程技术网

为android构建独立于位置的可执行文件的问题

为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

我正在为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 prevents security hardening. Please fix.
CANNOT LINK EXECUTABLE: cannot locate symbol "__exidx_end" referenced by "./openssl"...

非常感谢您对这些消息的含义以及如何解决它们的任何想法。

似乎我只需要链接libc来定义这个符号