Skip to content

riscv_ztso_minor_fix

Tsukasa OI edited this page Sep 21, 2022 · 2 revisions

Fix: Set ELF flag of Ztso on .option arch

Issue Solved

Currently, it sets EF_RISCV_TSO ELF flag when initial ISA string contains the Ztso extension. However, GAS has a way to update the ISA string: .option arch.

When the architecture is updated by .option arch, EF_RISCV_RVC ELF flag is set when the C extension is detected. Analogously, this patchset sets the EF_RISCV_TSO when the Ztso extension is detected.

With this patch, the Ztso extension support will be complete.

Clone this wiki locally