riscv64 elf flags should be configurable

This commit is contained in:
noneofyourbusiness 2023-12-07 16:27:27 +01:00
parent d87801bd50
commit c71415b543
No known key found for this signature in database
GPG Key ID: FF810A8659912F5A

View File

@ -2504,6 +2504,7 @@ static int tcc_output_elf(TCCState *s1, FILE *f, int phnum, ElfW(Phdr) *phdr,
#elif defined TCC_TARGET_ARM
ehdr.e_ident[EI_OSABI] = ELFOSABI_ARM;
#elif defined TCC_TARGET_RISCV64
/* XXX should be configurable */
ehdr.e_flags = EF_RISCV_FLOAT_ABI_DOUBLE;
#endif