-
Notifications
You must be signed in to change notification settings - Fork 177
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
Error: dangerous relocation: call8: call target out of range:(xtensa-esp32s3-espidf) #392
Comments
IIRC, mlongcalls isn't implemented in LLVM - but there is mtext-section-literals which you can try. The way to pass args to llvm is
|
Thank you @MabezDev but I have got the same error. By the way you are right, "-mlongcalls" is part of ESP-IDF standard flags. This flag is set in the toolchain file so it should propagate to all C source files even when using IDF as a library.
This is so weird. |
ok, with a bit of debugging I was able to fix this. I need to add the "-mlongcalls" for the TARGET_CFLAGS used with the xtensa-esp32-elf-cc to compile the c code from the ring crate. .cargo.toml
|
.cargo.toml
In theory this happens when the binary blobs used is built without -mlongcalls. But in this case the mlongcalls flag is being used.
Nevertheless, I am a bit lost with this error, any suggestion would be welcome.
Cheers,
The text was updated successfully, but these errors were encountered: