Skip to content

Commit

Permalink
elf: Ignore lack of .bss section in loadable modules
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
  • Loading branch information
softwarecki committed Sep 22, 2023
1 parent 48a39b6 commit 99e11de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 99e11de

Please sign in to comment.