vppinfra: dont complain about linux-vdso.so.1 93/29093/2
authorDave Barach <dave@barachs.net>
Fri, 25 Sep 2020 14:18:04 +0000 (10:18 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 25 Sep 2020 15:31:33 +0000 (15:31 +0000)
It's not an elf file, yadda yadda.

Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ie02a058adab1068260d9baa0a19398dab8d912d1

src/vppinfra/elf_clib.c

index 2bc05e1..ea63a16 100644 (file)
@@ -243,7 +243,13 @@ add_section (struct dl_phdr_info *info, size_t size, void *opaque)
 
   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);