Hi
I didn't find this "bug" reported anywhere and the intention was to work around it by re-writing the linker scripts (at least for i.MX RT projects) to avoid the SIZEOF() that no longer works correctly.
With gcc version 10.2.1 20201103 (and previous versions) there is no issue and the same linker script method has been used for 11 years, based on KDS references. Since around 2018 the same linker script method has been further used, adapted to suit i.MX RT. This GCC version is included in MCUXpresso 11.4.
All i.MX RT builds started failing with the GCC version in MCUXpresso 11.5 with errors due to overlapping sections, and the map files showing that all uses of SIZEOF(.text) [or maybe generally SIZEOF(.)] resolve to 0 rather that to the section size they are intended to be.
Building the projects for Kinetis (instead of i.MX) using the same linker script files as always still works though, hence the suspicion that only Cortex-M7 targets suffer the problem.
As you are probably aware the problem with processor shortages - especially Kinetis - has meant that there is a huge demand to convert existing products using Kinetis to either i.MX RT or others (like STM32) and so I have been rather inundated with such critical jobs (some smaller companies with only one product that they can no longer produce - although the market still exists to sell them - need solutions to allow the product to quickly be transferred to an alternative processor to ensure that they can survive). Therefore I have temporarily abandoned supporting the developers' forums (apart from when there is a direct @used) and also didn't invest in the linker script rework just yet (since having the older GCC in parallel is a quick workaround). I'll get to it one day though...
Regards
Mark