File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ static constexpr intptr_t EF_ARM_ABI_FLOAT_HARD = 0x00000400;
168168static constexpr intptr_t EF_ARM_ABI_FLOAT_SOFT = 0x00000200 ;
169169static constexpr intptr_t EF_ARM_ABI = 0x05000000 ;
170170
171+ static constexpr intptr_t EF_RISCV_RVC = 0x1 ;
172+ static constexpr intptr_t EF_RISCV_FLOAT_ABI_DOUBLE = 0x4 ;
173+
171174static constexpr intptr_t EM_386 = 3 ;
172175static constexpr intptr_t EM_ARM = 40 ;
173176static constexpr intptr_t EM_X86_64 = 62 ;
Original file line number Diff line number Diff line change @@ -2120,6 +2120,8 @@ void ElfHeader::Write(ElfWriteStream* stream) const {
21202120 uword flags = elf::EF_ARM_ABI | (TargetCPUFeatures::hardfp_supported ()
21212121 ? elf::EF_ARM_ABI_FLOAT_HARD
21222122 : elf::EF_ARM_ABI_FLOAT_SOFT);
2123+ #elif defined(TARGET_ARCH_RISCV32) || defined(TARGET_ARCH_RISCV64)
2124+ uword flags = elf::EF_RISCV_RVC | elf::EF_RISCV_FLOAT_ABI_DOUBLE;
21232125#else
21242126 uword flags = 0 ;
21252127#endif
You can’t perform that action at this time.
0 commit comments