I'm attempting to use msp430-gcc-opensource (3.2.2.0). The compiled and linked elf files, however, don't seem to work with the included objdump. The same commands and makefiles using the non-TI (installed via ubuntu standard packages) work fine.
Is there something I'm missing? Are there any relatively simple workarounds?
Compile Command:
/opt/ti/gcc/bin/msp430-elf-gcc -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -fdata-sections -ffunction-sections -O0 -DGCC_MSP430 -O2 -g -DNDEBUG -I/opt/ti/gcc/include -I/home/chintal/code/workspaces/kdevelop/msp430/baremetal-hal/src -mmcu=msp430f5529 -o CMakeFiles/firmware-msp430f5529.elf.dir/main.c.obj -c /home/chintal/code/workspaces/kdevelop/msp430/baremetal-hal/src/application/main.c
Link Command:
/opt/ti/gcc/bin/msp430-elf-gcc -Wl,--gc-sections -Wl,--gc-sections -mmcu=msp430f5529 -Wl,-Map,firmware-msp430f5529.map CMakeFiles/firmware-msp430f5529.elf.dir/main.c.obj -o firmware-msp430f5529.elf -L/opt/ti/gcc/include
Attempting to create code listing:
/opt/ti/gcc/bin/msp430-elf-objdump -h -S firmware-msp430f5529.elf > firmware-msp430f5529.lst
Results in the following errors:
BFD: Dwarf Error: mangled line number section.
BFD: Dwarf Error: mangled line number section.