This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/TM4C1294NCPDT:构建与位置无关的代码

Guru**** 2465890 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/661555/linux-tm4c1294ncpdt-building-position-independent-code

器件型号:TM4C1294NCPDT

工具/软件:Linux

您好!

我创建了自定义固件更新过程、并将闪存分为2个分区。 我希望能够构建一个可在两个分区中工作的映像、但到目前为止、我还没有弄清楚如何执行此操作。 我尝试了-FPIC 编译器标志、但这不起作用。 到目前为止、我必须为每个分区创建2个单独的映像、1个映像。 对于这两个映像中的每一个、我都必须在链接器脚本的存储器中指定位置。 是否有任何关于如何构建独立于位置的图像的建议?

谢谢、
Doug Burrell