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

riscv: Fix ELF header flags #106797

Merged
merged 1 commit into from
Jan 14, 2023
Merged

Commits on Jan 13, 2023

  1. riscv: Fix ELF header flags

    The previous version added both `EF_RISCV_FLOAT_ABI_DOUBLE` and
    `EF_RISCV_RVC` if the "D" extension was enabled on riscv64 targets.
    riscv32 targets were not accounted for. This patch changes this
    so that:
    
    - Only add `EF_RISCV_RVC` if the "C" extension is enabled
    - Add `EF_RISCV_FLOAT_ABI_SINGLE` if the "F" extension is enabled
      and the "D" extension is not
    - Add these ELF flags for riscv32 as well
    FawazTirmizi committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    138a1d2 View commit details
    Browse the repository at this point in the history