|
@@ -304,7 +304,7 @@ static bool_t enter_bootloader(void)
|
|
int main(void)
|
|
int main(void)
|
|
{
|
|
{
|
|
/* Relocate DATA. Initialise BSS. */
|
|
/* Relocate DATA. Initialise BSS. */
|
|
- if (_sdat != _ldat)
|
|
|
|
|
|
+ if (&_sdat[0] != &_ldat[0])
|
|
memcpy(_sdat, _ldat, _edat-_sdat);
|
|
memcpy(_sdat, _ldat, _edat-_sdat);
|
|
memset(_sbss, 0, _ebss-_sbss);
|
|
memset(_sbss, 0, _ebss-_sbss);
|
|
|
|
|