Skip to content

Enable -mcmodel=medany by default on RiscV64 #82

@jklmnn

Description

@jklmnn

The RiscV64 runtimes (especially polarfiresoc) expect the compiler to use -mcmodel=medany. Otherwise they will produce relocation errors. Adding the switch manually fixes the problem for light-polarfiresoc and light-tasking-polarfiresoc. However the problem seems to persist for embedded-polarfiresoc. All three runtimes work with our compiler configured with --with-specs='%{!mcmodel=*:-mcmodel=medany}'.

Note that this problem does not seem to appear with the spike runtime as it still manually adds -mcmodel=medany for historical reasons.

This issue was initially reported in AdaCore/bb-runtimes#73.

cc @Fabien-Chouteau

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions