[elektro] avr-gcc, linker error

BEREGNYEI Balazs bereg at impulzus.com
Sat Oct 30 16:01:56 CEST 2010


Hali,

Ujabban ezt mondja az avr-gcc:

/usr/lib/gcc/avr/4.3.2/../../../avr/bin/ld: section .rwwtop [00007f00 -> 00007f97] overlaps section .bss [00007d0a -> 00007f03]

Ha csokkentem a memoriavaltozok mennyiseget, akkor nincs hiba. Amit nem 
ertek benne, hogy a linker miert utkoztet programcimeket RAM-cimekkel: a 
.rwwtop section flash-ben van, a .bss pedig (szerintem) RAM-ban, es az 
utkozes tenyleg megszuntetheto a RAM-foglalas csokkentesevel.

Igy forditok:

avr-gcc -Os -g -Wall -mmcu=atmega32 -Wl,--section-start=.text=0x7000 -Wl,--section-start=.rwwtop=0x7f00 *c

Ez amugy egy bootloader. Lehet, hogy a .text=0x7000-tol zavarodik meg a gcc?

Koszi,
BB



More information about the Elektro mailing list