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
This commit is contained in:
committed by
Florin Coras
parent
6b6c10be05
commit
18f0d3e782
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user