We have some static variables var, zeroed_var and bss_var in mem_partition.c and we only assert the value of them in the same file, so the compiler may pre-calculate it in compile stage, it's fine usually. But for variable zeroed_var (= 20420), we force to put it in bss section in link stage, the value will change in bss clean stage, so we will get a wrong result. Let's add volatile for these variables to disable pre-calculation. Signed-off-by: Watson Zeng <zhiwei@synopsys.com> |
||
|---|---|---|
| .. | ||
| application_development/gen_inc_file | ||
| arch | ||
| benchmarks | ||
| bluetooth | ||
| boards | ||
| crypto | ||
| drivers | ||
| kernel | ||
| lib | ||
| misc/test_build | ||
| net | ||
| posix | ||
| subsys | ||
| unit | ||
| ztest | ||