#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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks