vppinfra: dont complain about linux-vdso.so.1
It's not an elf file, yadda yadda.
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ie02a058adab1068260d9baa0a19398dab8d912d1
diff --git a/src/vppinfra/elf_clib.c b/src/vppinfra/elf_clib.c
index 2bc05e1..ea63a16 100644
--- a/src/vppinfra/elf_clib.c
+++ b/src/vppinfra/elf_clib.c
@@ -243,7 +243,13 @@
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);