MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / validate_vdso_elf

Function validate_vdso_elf

components/lwp/arch/common/vdso.c:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103static int validate_vdso_elf(void)
104{
105 if (rt_memcmp(vdso_info[VDSO_ABI_COMMON].vdso_code_start, ELF_HEAD, ELF_HEAD_LEN))
106 {
107 LOG_E("vDSO is not a valid ELF object!");
108 init_ret_flag = -RT_ERROR;
109 return -RT_ERROR;
110 }
111 vdso_info[VDSO_ABI_COMMON].vdso_pages = (vdso_info[VDSO_ABI_COMMON].vdso_code_end - vdso_info[VDSO_ABI_COMMON].vdso_code_start) >> ARCH_PAGE_SHIFT;
112
113 __initdata();
114 return RT_EOK;
115}
116INIT_COMPONENT_EXPORT(validate_vdso_elf);

Callers

nothing calls this directly

Calls 2

rt_memcmpFunction · 0.85
__initdataFunction · 0.85

Tested by

no test coverage detected