mc9s12xep100 compiler error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mc9s12xep100 compiler error

Jump to solution
513 Views
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 Kudos
1 Solution
403 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
404 Views
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 Kudos