mc9s12xep100 compiler error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mc9s12xep100 compiler error

跳至解决方案
1,130 次查看
chenchenchen
Contributor II

HI

     I use the codewarrior to compile program. and a error is confused. 'Error:L1122: only checksum section may be behind .copy in the section list'. what cause this?

0 项奖励
回复
1 解答
1,020 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Chen

From the error message, there is a section(not checksum) linked behind .copy section.

L1122: Section .copy must be the last section in the section list Move the section .copy to the last position in the section list or define it on a separate PLACEMENT line in a separate segment. Please note that .copy is also a synonym for COPY (e.g. used in HIWARE object file format PRM files).

for example, this example will cause error. because .copy is not the last section

pastedImage_4.png

This is the correction: move .copy to the last section.

pastedImage_3.png

Can this help you solve the problem? if not, please upload your demo project here, thus I can work on the error directly.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,021 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Chen

From the error message, there is a section(not checksum) linked behind .copy section.

L1122: Section .copy must be the last section in the section list Move the section .copy to the last position in the section list or define it on a separate PLACEMENT line in a separate segment. Please note that .copy is also a synonym for COPY (e.g. used in HIWARE object file format PRM files).

for example, this example will cause error. because .copy is not the last section

pastedImage_4.png

This is the correction: move .copy to the last section.

pastedImage_3.png

Can this help you solve the problem? if not, please upload your demo project here, thus I can work on the error directly.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复