xiaoxiang781216 commented on issue #2001: URL: https://github.com/apache/incubator-nuttx/issues/2001#issuecomment-725794714
> Well, I thought of BSS because in most systems BSS is zero'ed (or painted) very soon during initialization, in a no-return function. So usually overwriting it, is not a problem, because you will never pop anything from the "corrupted" portion. > No, it may corrupt the variables you are using, the zero memory loop may never or premature terminate. > Nevertheless, you are right. It has to be done correctly. > > What is the most appropriate section to place the stack? `.noinit`? Or define a special section (which requires changes in all linker-scripts though...)? .noinit is already used in several linker script, so it's a good candidate. Yes, you have to change all linker-scripts, so I don't suggest this direction. The idle stack size overflow isn't a common problem, do you really hit this issue? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org