clib_elf_section_bounds_t *b;
/* Section name must begin with CLIB_ELF_SECTION key. */
- if (memcmp (name, section_name_start, section_name_start_len))
+ if (strcmp ((char *) name, section_name_start))
continue;
name += section_name_start_len;
error = clib_elf_parse_file (cem, name, addr);
if (error)
- clib_error_report (error);
+ {
+ /* Don't complain about 'linux-vdso.so.1' */
+ if (!is_main && name[0] != '/' && error->code == ENOENT)
+ clib_error_free (error);
+ else
+ clib_error_report (error);
+ }
if (is_main && name != cem->exec_path)
vec_free (name);
static clib_elf_main_t clib_elf_main;
-void
+__clib_export void
clib_elf_main_init (char *exec_path)
{
clib_elf_main_t *cem = &clib_elf_main;
}
}
-u8 *
+__clib_export u8 *
format_clib_elf_symbol_with_address (u8 * s, va_list * args)
{
uword address = va_arg (*args, uword);