[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #14855] Link Error "relocation truncated to fit: R_A
From: |
anonymous |
Subject: |
[avr-libc-dev] [bug #14855] Link Error "relocation truncated to fit: R_AVR_13_PCREL" |
Date: |
Tue, 25 Oct 2005 09:50:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7) |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14855>
Summary: Link Error "relocation truncated to fit:
R_AVR_13_PCREL"
Project: AVR C Runtime Library
Submitted by: None
Submitted on: Tue 10/25/05 at 09:50
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Percent Complete: 0%
Originator Email: address@hidden
Open/Closed: Open
_______________________________________________________
Details:
I'm getting a linking error ( below ) using g++ 3.4.3 with an ATMega168.
I can make the source compile or not compile by commenting out a line
equivalent to 'f+=10.0' where f is a float.
The linker version is 2.15.
..
switching back to gcc ( from g++ ) shrinks the code dramatically ( much more
than the usual g++/gcc difference ) and the problem goes away. Don't know if
it will reappear as I reach the memory limits.
Thread here:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=180132#180132
Linking: controller.elf
avr-g++ -mmcu=atmega168 -I. -gstabs -DF_CPU=11059200UL
-DUART_RX_BUFFER_SIZE=128 -DUART_TX_BUFFER_SIZE=16 -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wa,-adhlns=controller.o -I../hal -I/home/bu/include/avr
-I/home/bu/include/avr/procyon -MD -MP -MF work/.dep/controller.elf.d
controller.o ../hal/serial.o ../hal/uart/uart.o
/home/bu/src/avr/procyon/cmdline.o /home/bu/src/avr/procyon/encoder.o
--output controller.elf -Wl,-Map=controller.map,--cref -lm
/usr/lib/gcc/avr/3.4.3/../../../../avr/lib/avr5/libm.a(exp.o)(.text.fplib+0x36):
In function `exp':
../../../../libm/fplib/exp.S:87: relocation truncated to fit: R_AVR_13_PCREL
no symbol
/usr/lib/gcc/avr/3.4.3/../../../../avr/lib/avr5/libm.a(log.o)(.text.fplib+0x3e):
In function `log':
../../../../libm/fplib/log.S:111: relocation truncated to fit: R_AVR_13_PCREL
no symbol
make: *** [controller.elf] Error 1
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
dan_sandberg --AT-- yahoo --DOT-- com | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14855>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #14855] Link Error "relocation truncated to fit: R_AVR_13_PCREL",
anonymous <=