Without this flag GRUB ignores the relocation section leading to a crash Signed-off-by: Vladimir Serbinenko <phco...@gmail.com> --- util/grub-pe2elf.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/util/grub-pe2elf.c b/util/grub-pe2elf.c index 11331294f..b686f0c82 100644 --- a/util/grub-pe2elf.c +++ b/util/grub-pe2elf.c @@ -341,6 +341,7 @@ write_reloc_section (FILE* fp, const char *name, char *image, shdr[i].sh_offset = offset; shdr[i].sh_link = symtab_section; shdr[i].sh_addralign = 4; + shdr[i].sh_flags = SHF_INFO_LINK; shdr[i].sh_entsize = sizeof (elf_reloc_t); shdr[i].sh_size = num_rels * sizeof (elf_reloc_t); -- 2.49.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel