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) (LLVM-419) #106

Open
3 tasks done
benhansen-io opened this issue Dec 5, 2024 · 0 comments
Open
3 tasks done

Support for position independent code (PIC) (LLVM-419) #106

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

Comments

@benhansen-io
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Described the feature in detail and justified the reason for the request.
  • Provided specific use cases and examples.

Feature description

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)

Use cases

For use cases such as elf_loader where code is to be loaded at runtime. In my case I have sections of code that I would like to load and execute from SD card so people can develop small "apps" for my device without requiring reflashing the firmware.

Alternatives

No response

Additional context

No response

@github-actions github-actions bot changed the title Support for position independent code (PIC) Support for position independent code (PIC) (LLVM-419) Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants