This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using microlib -- but .bss is not being initialized to 0

i am able to successfully build/load/run programs on my M3 target hardware, though i just discovered that .bss is *NOT* being initialized to 0; rather, variables allocated in this section have garbage as their initial value....

i am compiling/linking using --library_type=microlib, and have verified that the critical function __main() is indeed linked into my image.... my understand is that __main() will initialize RAM among other things -- copy initial values to variables with non-zero initial values, and zeroing out the rest....

any ideas on a critical step i may have missed, or how i might further diagnose this issue???

thanks....

0