2

我有一个静态库 (.a),可直接在 ARM Cortex-M0+ (arm-none-eabi) 上运行。是否可以以某种方式修改它或我的工具链,以便我可以在运行 android (arm-linux-androideabi) 的 Cortex-A7 上使用该库?我无权访问它的构建源。

该库不与硬件外围设备交互。它最初是使用飞思卡尔 ARM 编译器构建的;我正在使用 gcc。

当我尝试链接它时,我得到了

error: conflicting architecture profiles M/A
warning: {the file} uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
warning: cannot scan executable section {some number} of {the file} for Cortex-A8 erratum because it has no mapping symbols.

对库中的每个目标文件重复几次。

4

0 回答 0