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.

[参考译文] TM4C1294KCPDT:与 gcc 无关的位置代码

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/610977/tm4c1294kcpdt-position-independent-code-with-gcc

器件型号:TM4C1294KCPDT

你好

我正在尝试在 TM4C129KC 上编译和运行与位置无关的代码。 编译工作正常、但当尝试运行启动例程时、在尝试 CPY 时、从闪存到 SRAM 的数据段初始化程序失败。 似乎链接器符号_text、_etext、_data 和_edata 未正确初始化。 我将-fpic 命令与 gcc 一起使用。

是否有人遇到过相同的问题?