The RISCV psABI already specifies ELF attributes as the mechanism for attaching feature bits to object files, so it is neither necessary nor desirable to add another.
https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#attributes G On Tue, Jan 14, 2025 at 3:07 PM Greg McGary <g...@rivosinc.com> wrote: > On Mon, Jan 13, 2025 at 1:02 AM Monk Chiang <monk.chi...@sifive.com> > wrote: > >> >> * gcc/config/riscv/riscv.cc >> (riscv_file_end_indicate_exec_stack): Add .note.gnu.property. >> >> * libgcc/config/riscv/riscv-asm.h: Add GNU_PROPERTY for ZICFILP, >> ZICFISS. >> > > ELF attributes (.riscv.attributes section) offer a cleaner way to attach > feature bits to object files. GNU properties (.note.gnu.property) > are uglier, > and less convenient to handle. I would much rather we use the ELF > mechanism. > > G >