Hello, I get and install the last version of WinAVR (April 08 -GCC 4.3.0). I get this "relocation truncated to fit: R_AVR_13_PCREL" error during the link operation. I'm working with AVR Studio 4.12
I've read i should add -lm to the linker command to avoid this...but no success :( So i need your help to avoid this problem! Excuse my english ;) thanks for your help. Best regards emmanuel NB: My source code had no change between the WinAvr changing operation. The las winAvr installed was the 2006-04-21 one (GCC 3.4.6) and the link operation worked well (without -lm) Here is the build result: avr-gcc.exe -mmcu=atmega128 -lm -minit-stack=0xFF0 -Wl,-Map=LCD.map main.o font8.o font74.o font62.o font54.o font48.o font46.o font36.o font72.o font24.o font12.o font106.o LCD128128fct.o lcd1font.o string_display_FR-EN.o usart.o eeprom.o Copernicus.o SP I16M.o GPS.o tactique.o ligne_depart.o SMG.o chrono_timer.o flash16M.o ADC.o angle_virement.o waypoint.o route.o USB16M.o histo_speed.o stats.o navigation_display.o sound.o display.o -L"C:\WinAVR-20080411\lib" -o LCD.elf c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/../../../../avr/lib/avr51\libc.a(fp_arccos.o): In function `__fp_arccos': (.text.fplib+0x24): relocation truncated to fit: R_AVR_13_PCREL against symbol `__subsf3' defined in .text section in c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/avr51\libgcc.a(_addsub_sf.o) c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/../../../../avr/lib/avr51\libc.a(square.o): In function `square': (.text.fplib+0x4): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/avr51\libgcc.a(_mul_sf.o) c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/../../../../avr/lib/avr51\libc.a(fp_powsodd.o): In function `__fp_powsodd': (.text.fplib+0x10): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/avr51\libgcc.a(_mul_sf.o) c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/../../../../avr/lib/avr51\libc.a(fp_powsodd.o): In function `__fp_powsodd': (.text.fplib+0x20): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/winavr-20080411/bin/../lib/gcc/avr/4.3.0/avr51\libgcc.a(_mul_sf.o) -- View this message in context: http://www.nabble.com/-AVR-gcc-linker-error--relocation-truncated-to-fit%3A-R_AVR_13_PCREL-...-tp16701424p16701424.html Sent from the AVR - General mailing list archive at Nabble.com. _______________________________________________ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat