GCC Linker fails after move to V11.5

cancel
Showing results for 
Search instead for 
Did you mean: 

GCC Linker fails after move to V11.5

563 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

555 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

550 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

537 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