energia / msp430-lg-core

15 stars 12 forks source link

"__init_array_start" symbol (msp430fr5994.ld) is not word aligned #122

Closed rei-vilo closed 4 years ago

rei-vilo commented 4 years ago

I'm building the same project against the MSP430FR5994 using two different versions of the msp430-elf-gcc tool-chain by Mitto.

Build and link processes with no error message, application runs successfully

Build and link processes with one warning message, but the application freezes at start.

/Users/ReiVilo/Library/Energia15/packages/energia/tools/msp430-elf-gcc/8.2.0.52/bin/../lib/gcc/msp430-elf/8.2.0/../../../../msp430-elf/bin/ld:1:1: "__init_array_start" symbol (msp430fr5994.ld) is not word aligned

Could you please investigate this issue and, if needed, escalate it to Mitto Systems Limited if the culprit is the tool-chain, or to Texas Instruments if it is the support files package?

Thank you!

rei-vilo commented 4 years ago

I haven't tried other combinations, like

StefanSch commented 4 years ago

just tried this config: GCC_VER="8.3.0.16" MSPSUPPORT_VER="1.208" but could not see an issue

rei-vilo commented 4 years ago

I’ll do the updates from MSP430-GCC-OPENSOURCE and try again.

rei-vilo commented 4 years ago

According to the Revisions_Header.txt:

Build 1.208 (GCC)

08/29/2019

Bug fixes:

  • Fixed GNU compiler build options
  • Added missing ALIGN directives for .preinit/init/fini_array sections in GCC linker command files
rei-vilo commented 4 years ago

Indeed, msp430-elf-gcc 8.3.0.16 and msp430-gcc-support-files 1.208 work fine.

No more warning on build, and the application runs as expected.

So please include those versions with the next release of the MSP430 boards package #120.