GCC Linker fails after move to V11.5

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

GCC Linker fails after move to V11.5

883 Views
mjbcswitzerland
Specialist V

Hi All

All of our projects developed with MCUXpresso V11.4 fail to link after moving to V11.5 due to overlapping areas generated by the linker.

It looks like it is due to the use of  SIZEOF() in linker scripts no longer works. Eg.
__fast_load_end__ = __fast_load_start__ + SIZEOF(.fast);
Instead of SIZEOF() returning the size of a region it looks to always return 0 and therefore all of the layout is incorrect, with multiple regions being located at the same start address.

Is SIZEOF() something that no longer operates and has it been replaced with a new syntax or been dropped?

Presently moving back to V11.4 solves the problem but it seems strange that such a change was done on purpose in MCUXpressor or the GCC version it uses. Is this a known issue?

Regards

Mark

 

 

0 Kudos
3 Replies

875 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

Please let us know your chip part number thus we can assign right engineer for your issue.

Thanks

Jun Zhang

0 Kudos

870 Views
mjbcswitzerland
Specialist V

Hi

It is not part dependent. It happens with all Kinetis and all i.MX RT based projects and seems to be a change/error with the GCC linker used.

Regards

Mark

 

0 Kudos

857 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Hi,

We tried a simple hello world project on RT, no linker error, no problems encountered on SIZEOF:

lpcxpresso_supp_2-1649014715769.png

 

Can you please elaborate what "fail to link" means? Better to provide an example with what you've tried, what it fails.

Regards,

MCUXpresso IDE Support

0 Kudos