Skip to content

Commit fb3c7be

Browse files
Fearyncesschenx97
authored andcommitted
util/grub-mkimagexx: fix uncorrect section var in make_reloc_section
1 parent e5d36fc commit fb3c7be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

util/grub-mkimagexx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,9 @@ make_reloc_section (Elf_Ehdr *e, struct grub_mkimage_layout *layout,
23292329
smd->strtab + grub_le_to_cpu32 (s->sh_name));
23302330
continue;
23312331
}
2332+
symtab_section = (Elf_Shdr *) ((char *) smd->sections
2333+
+ (grub_target_to_host32 (s->sh_link)
2334+
* smd->section_entsize));
23322335

23332336
grub_util_info ("translating the relocation section %s",
23342337
smd->strtab + grub_le_to_cpu32 (s->sh_name));

0 commit comments

Comments
 (0)