mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 01:54:27 +08:00
module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@625 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -186,6 +186,10 @@ struct rt_module* rt_module_load(void* module_ptr, const rt_uint8_t* name)
|
||||
struct rt_module* module = RT_NULL;
|
||||
rt_uint8_t *ptr, *strtab, *shstrab;
|
||||
|
||||
#ifdef RT_MODULE_DEBUG
|
||||
rt_kprintf("rt_module_load: %s\n", name);
|
||||
#endif
|
||||
|
||||
/* check ELF header */
|
||||
if (rt_memcmp(elf_module->e_ident, ELFMAG, SELFMAG) != 0 ||
|
||||
elf_module->e_ident[EI_CLASS] != ELFCLASS32)
|
||||
|
||||
Reference in New Issue
Block a user