Skip to content

Support for position independent code (PIC) #247

@benhansen-io

Description

@benhansen-io

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions