[ADD]riscv.c dlmodule can support riscv architecture

[CHG]dlelf.c support distinguishing 32-bit ELF format and 64-bit ELF format
This commit is contained in:
chunyexixiaoyu
2021-04-25 20:01:23 +08:00
parent e3c19a8463
commit 2afca00787
4 changed files with 236 additions and 45 deletions

View File

@@ -464,7 +464,7 @@ struct rt_dlmodule* dlmodule_load(const char* filename)
}
/* check ELF class */
if (elf_module->e_ident[EI_CLASS] != ELFCLASS32)
if ((elf_module->e_ident[EI_CLASS] != ELFCLASS32)&&(elf_module->e_ident[EI_CLASS] != ELFCLASS64))
{
rt_kprintf("Module: ELF class error\n");
goto __exit;