forked from stm32duino/Arduino_Core_STM32
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
You sometime get warnings at linktime, like: warning: changing start of section .bss by 4 bytes.
This is an error in the variant ldscript.ld. (This probably should be moved to be common for all variants, as the Murata module is constant, but .. different issue.)
I patched my local version from:
Arduino_Core_STM32/variants/CATENA_4801/ldscript.ld
Lines 149 to 153 in 6fba842
| /* Uninitialized data section */ | |
| . = ALIGN(4); | |
| .bss : | |
| { | |
| /* This is used by the startup in order to initialize the .bss secion */ |
to:
/* Uninitialized data section */
. = ALIGN(4)
.bss ALIGN(4):
{
. = ALIGN(4);
/* This is used by the startup in order to initialize the .bss secion */
And the warning goes away, at least when compiling the model 4811 firmware at commit a32357be6d76307c2a6042147ddf5b1c469492bd.