[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_A
From: |
rtwas |
Subject: |
[avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error |
Date: |
Fri, 06 Apr 2007 00:10:29 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.13) Gecko/20060417 |
gcc: avr-gcc (GCC) 4.1.1
libc: avr-libc-1.4.4
atmega128:
Hello,
On a current project, as soon as I add
dtostrf(f0, 4, 4, str2);
or
dtostre((float) f0, str2, 4,0);
to one of my source files I get:
/usr/local/atmel/bin/avr-gcc -g -Os -Wall -mcall-prologues
-mmcu=atmega128 -save-temps main.o spim.o spim_tmr0.o diag.o uart.o
cmd.o cmd_spi.o -o avr_sdiag0.obj
/usr/local/atmel/lib/gcc/avr/4.1.1/../../../../avr/lib/avr5/libc.a(pow.o):
In function `pow':
../../../libm/fplib/pow.S:100: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_mul_sf.o)
/usr/local/atmel/lib/gcc/avr/4.1.1/../../../../avr/lib/avr5/libc.a(exp.o):
In function `exp':
../../../libm/fplib/exp.S:90: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_mul_sf.o)
/usr/local/atmel/lib/gcc/avr/4.1.1/../../../../avr/lib/avr5/libc.a(log.o):
In function `log':
../../../libm/fplib/log.S:109: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__floatsisf' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_si_to_sf.o)
../../../libm/fplib/log.S:114: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_mul_sf.o)
../../../libm/fplib/log.S:123: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__addsf3' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_addsub_sf.o)
/usr/local/atmel/lib/gcc/avr/4.1.1/../../../../avr/lib/avr5/libc.a(modf.o):
In function `modf':
../../../libm/fplib/modf.S:81: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__floatsisf' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_si_to_sf.o)
../../../libm/fplib/modf.S:93: relocation truncated to fit:
R_AVR_13_PCREL against symbol `__addsf3' defined in .text section in
/usr/local/atmel/lib/gcc/avr/4.1.1/avr5/libgcc.a(_addsub_sf.o)
make: *** [avr_sdiag0.obj] Error 1
When I compile.
I've used dtostrf in an atmega32 target with no difficulty. I've done
some searching and there is a similar bug dating back to 2005 in
the bug list. Nothing further is mentioned about it.
Thanks.
Robert W.
- [avr-gcc-list] dtostrf and the dreaded "relocation truncated to fit: R_AVR_13_PCREL" error,
rtwas <=