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.

[参考译文] AM263P4-Q1:链接器脚本中 libc.a 的可移植路径

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1611901/am263p4-q1-portable-path-to-libc-a-in-linker-script

器件型号: AM263P4-Q1

您好:

我想将一些函数(例如 libc.a 中的 fmodf()) 加载到 TCM 中以加快执行速度。

我已经有了文件 libc.a 的搜索路径、如下所示:

image.png

但是、我收到“file not found“链接器错误。  

要找到它、我必须完全限定路径、如下所示:

    GROUP  :   {
    FAST_FUNCTIONS : {
        "C:\ti\ccs1281\ccs\tools\compiler\ti-cgt-armllvm_4.0.4.LTS\lib\"libc.a(.text)
    } align(8)
    .controlfnc : {
    } align(8)
    } > R5F_TCMA 

但很明显、到 libc.a 的绝对路径不可移植。

  1. 为什么链接器搜索路径不成功?
  2. 我如何放置一个可移植路径到 libc.a 请?

谢谢你。