Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#359 Segmentation fault if code is linked into .near.data section

4.7.x_development
open
nobody
None
5
2013-09-26
2013-09-26
Oliver
No

I am working on a bootloader implemented in C only for MSP430F5342 (20bit address range). While experimenting I stumbled over a reproducible segmentation fault of mspgcc.

I use "msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120911)" under Windows7+mingw. I must admit that my crashing example doesn't make much sense. IMHO this bug is not a big showstopper.
Try:

__attribute__ ((section(".near.data"))) int main(void) { }

compiled with:

msp430-gcc -mcpu=430x main.c

Discussion