jnk0le / AVR-UART-lib

extremly light uart library for AVR 8 bit microcontrollers
MIT License
103 stars 36 forks source link

<artificial>:(.text.startup+0x3a): relocation truncated to fit: R_AVR_13_PCREL against `no symbol' in platformio #17

Open kasiselvamk opened 2 years ago

kasiselvamk commented 2 years ago

getting below compile error while using in platformio

Linking .pio/build/ATmega328P/firmware.elf /tmp/ccdNSK77.ltrans0.ltrans.o: In function `load_loop_2065':

:(.text.startup+0x3a): relocation truncated to fit: R_AVR_13_PCREL against `no symbol' collect2: error: ld returned 1 exit status *** [.pio/build/ATmega328P/firmware.elf] Error 1
jnk0le commented 1 year ago

might be something other e.g. https://www.stix.id.au/wiki/AVR_relocation_truncations_workaround

There are some rcalls within uart.c, but those are usually kept next to each other. Thats going to be another bloat of ifdefs...