Skip to content

Commit 168bb07

Browse files
facchinmsoburi
authored andcommitted
static_build: fix bss initialization
Co-authored-by: Martino Facchin <m.facchin@arduino.cc> Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent c1dcf6c commit 168bb07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cores/arduino/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extern "C" __attribute__((section(".entry_point"), used)) void entry_point(struc
9393
printk("Sketch Heap start: %p, size %p\n", &kheap_llext_heap, &kheap_llext_heap_size);
9494

9595
memcpy(&_sdata, &_sidata, (&_edata - &_sdata) * sizeof(uint32_t));
96-
memset(&_sbss, 0, &_ebss - &_sbss);
96+
memset(&_sbss, 0, (&_ebss - &_sbss) * sizeof(uint32_t));
9797
__libc_init_array();
9898
main();
9999
}

0 commit comments

Comments
 (0)