[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] rjmp across FLASHEND
From: |
Bernhard Kuemel |
Subject: |
[avr-libc-dev] rjmp across FLASHEND |
Date: |
Thu, 06 Oct 2011 23:38:19 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11 |
Hi!
My avr-gcc (debian/squeeze, gcc version 4.3.5 (GCC)), as it seems,
doesn't support rjmp across FLASHEND for ATmega168 (16K Flash):
#include <avr/io.h>
.global main
main:
rjmp tinyloader
.org FLASHEND+1-0x3e
tinyloader:
rjmp tinyloader
address@hidden:~/src/attiny45/test5$ make
avr-gcc -mmcu=atmega168 -c -o btinyloader.o btinyloader.S
avr-gcc -g -Wall -O0 -mmcu=atmega168 -nostartfiles
-Wl,-Map,btinyloader.map -o btinyloader.elf btinyloader.o
btinyloader.o: In function `main':
(.text+0x0): relocation truncated to fit: R_AVR_13_PCREL against `no symbol'
make: *** [btinyloader.elf] Error 1
Can you implement this, please? Is there a workaround to get the correct
rjmp?
Thanks, Bernhard