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

Support for position independent code (PIC) #247

Closed
benhansen-io opened this issue Dec 5, 2024 · 2 comments
Closed

Support for position independent code (PIC) #247

benhansen-io opened this issue Dec 5, 2024 · 2 comments

Comments

@benhansen-io
Copy link

I would like to use espressif/elf_loader to load an elf file with Rust code on the esp32s3 (xtensa) however elf loader currently requires position independent code. When I try to compile Rust code with the esp-rs compiler using the rust flag: -C relocation-model=pic

I get the following error message:

LLVM ERROR: PIC relocations is not supported
error: could not compile `core` (lib)
@MabezDev
Copy link
Member

MabezDev commented Dec 5, 2024

PIC is dependent solely on LLVM support, could you open the issue under https://github.com/espressif/llvm-project instead?

@benhansen-io
Copy link
Author

Done. Issue is espressif/llvm-project#106

@benhansen-io benhansen-io closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants