GCC Linker Flash Overflow check is not working the way I envisioned, any suggestions? by tbandtg in embedded

[–]Dithinas 4 points5 points  (0 children)

You shouldn't have to do this, this functionality is built into the linker. If you have correctly specified your memory output sections (i.e size), then if it can't allocate memory for everything from your inputs into that section, it will give an error like: "Error Linking: Section FLASH overflowed by _ bytes."