jsiei97/FunTechCortexMX_gcc — Issue #5: FunTechCortexMX_test - datai_size is sometimes wrong.
Author: jsiei97
Created: 2012-02-18 12:07:22+00:00
State: open

# Test results
Results:
OK: 0
FAIL 0
Err 5

log.test01.txt - Error
log.test02.txt - Error
log.test03.txt - Error
log.test04.txt - Error
log.test05.txt - Error

make TEST=test01 ddd
data_size = 547
datai_size = 548

make TEST=test02 ddd
data_size = 547
datai_size = 548

make TEST=test05 ddd
data_size = 543
datai_size = 544

test03 and test04 does not have this problem.

If we look into test01:

grep my_global main.symboltable
2000003c D my_global_variable_one
20000040 D my_global_variable_two
20000d80 B my_global_variable_zero

Breakpoint 1, low_level_init () at src/low_level_init.c:60

(gdb) print *0x2000003c
$1 = 15988
(gdb) print *0x20000040
$2 = 1
(gdb) print *0x20000044
$3 = 2
(gdb)

We see that we have a of by one, the strange thing is that it is only true for test 1,2 and 5.