diff options
| author | chunyexixiaoyu <[email protected]> | 2021-04-25 20:01:23 +0800 |
|---|---|---|
| committer | chunyexixiaoyu <[email protected]> | 2021-04-27 21:24:42 +0800 |
| commit | 2afca007874df3a056dcad382a303b4903e6206d (patch) | |
| tree | 824a1924f877d4e88c9790e9577ecaeb5bdfcf05 /components/libc/libdl/dlmodule.c | |
| parent | e3c19a846348adc6b66a1cc449cbbd26622eee45 (diff) | |
[ADD]riscv.c dlmodule can support riscv architecture
[CHG]dlelf.c support distinguishing 32-bit ELF format and 64-bit ELF format
Diffstat (limited to 'components/libc/libdl/dlmodule.c')
| -rw-r--r-- | components/libc/libdl/dlmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/libdl/dlmodule.c b/components/libc/libdl/dlmodule.c index c4bbb26b37..044c05a994 100644 --- a/components/libc/libdl/dlmodule.c +++ b/components/libc/libdl/dlmodule.c @@ -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; |
