From 99e11decb67accbc947f63ba232880c5723b543b Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Fri, 22 Sep 2023 16:04:54 +0200 Subject: [PATCH] elf: Ignore lack of .bss section in loadable modules Signed-off-by: Adrian Warecki --- src/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elf.c b/src/elf.c index 3843635..f287e24 100644 --- a/src/elf.c +++ b/src/elf.c @@ -89,7 +89,7 @@ static int elf_read_sections(struct image *image, struct manifest_module *module } else { /* find manifest module data */ module->bss_index = elf_find_section(module, ".bss"); - if (module->bss_index < 0) + if (module->bss_index < 0 && !image->loadable_module) return module->bss_index; }