工具/软件:TI C/C++编译器
我的链接器命令文件(部分)是
组>闪存:
{
FIRST_SECTION
{
-lxxx.lib (.text、.const、.cinit){}
}
second_section
{
*(.text)
*(.const)
}
}crc_table (MDU_crc_table、算法=CRC16_CCITT)
.cinit :{}crc_table (mdu_crc_table、algorit=CRC16_CCITT)> FLASH
这似乎起作用。 它创建一个 crc_table、其中包含第一个、第二个和.cinit 段的三个条目。 我想将其减少为两个条目。 我尝试使用多种不同的语法将".cinit"移动到"second_section"中、但都以某种方式失败。 例如
组>闪存:
{
FIRST_SECTION
{
-lxxx.lib (.text、.const、.cinit){}
}
second_section
{
*(.text)
*(.const)
*(.cinit)
}
}crc_table (MDU_crc_table、算法=CRC16_CCITT)
为*(.cinit)生成#10068-D no matching section warning、但未正确应用 cinit。 有什么建议吗?