summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-09-25 10:18:04 -0400
committerFlorin Coras <florin.coras@gmail.com>2020-09-25 15:31:33 +0000
commit18f0d3e7822f582b1b941b0dc5c3c44181493b5c (patch)
tree6e6b72c99a502048af86523963f6b4f4ae8eafc0 /src
parent6b6c10be0512a459146de82ba5fa2acc86f3f8d4 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/elf_clib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vppinfra/elf_clib.c b/src/vppinfra/elf_clib.c
index 2bc05e1d8d4..ea63a160973 100644
--- a/src/vppinfra/elf_clib.c
+++ b/src/vppinfra/elf_clib.c
@@ -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);