| 101 | |
| 102 | |
| 103 | static 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 | } |
| 116 | INIT_COMPONENT_EXPORT(validate_vdso_elf); |
nothing calls this directly
no test coverage detected