Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kasiselvamk opened this issue Sep 20, 2022 · 1 comment

Comments

@kasiselvamk
Copy link

getting below compile error while using in platformio

Linking .pio/build/ATmega328P/firmware.elf
/tmp/ccdNSK77.ltrans0.ltrans.o: In function load_loop_2065': <artificial>:(.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
Copy link
Owner

jnk0le commented Dec 11, 2022

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants