ATmega Bootloader compilation error

Hello,

i tried just to compile the atmega8 boot loader. The bootloader included in ardurino for antmega8 is nice, it has jut 1kb. But when trying to compile i get this error:

/usr/bin/avr-gcc -g -Wall -Os -mmcu=atmega8 -Datmega8 -DF_CPU=16000000 -DBAUD_RATE=19200 -I/usr/include -Wl,-Map,ATmegaBOOT.map,–section-start=.text=0x1c00 -o ATmegaBOOT.elf ATmegaBOOT.o
/usr/lib/gcc/avr/4.3.2/…/…/…/avr/bin/ld: address 0x212c of ATmegaBOOT.elf section .text is not within region text
/usr/lib/gcc/avr/4.3.2/…/…/…/avr/bin/ld: address 0x212c of ATmegaBOOT.elf section .text is not within region text

How can i compile?

avr-gcc 4.3.2

Thank you

Jan

You probably need to use an older version of avr-gcc. Newer ones seem to generate bigger output. I would try 3.something.