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> |
||
|---|---|---|
| .. | ||
| demand_paging | ||
| futex | ||
| mem_map | ||
| mem_protect | ||
| obj_validation | ||
| protection | ||
| stack_random | ||
| stackprot | ||
| sys_sem | ||
| syscalls | ||
| userspace | ||