* util/grub-pe2elf.c: Fix handling of .bss.
This commit is contained in:
parent
814442ba69
commit
74e7ad6604
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/grub-pe2elf.c: Fix handling of .bss.
|
||||||
|
|
||||||
2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Implement windows flavour of EFI install routines.
|
Implement windows flavour of EFI install routines.
|
||||||
|
|
|
@ -143,6 +143,8 @@ write_section_data (FILE* fp, const char *name, char *image,
|
||||||
{
|
{
|
||||||
idx = BSS_SECTION;
|
idx = BSS_SECTION;
|
||||||
shdr[idx].sh_flags = SHF_ALLOC | SHF_WRITE;
|
shdr[idx].sh_flags = SHF_ALLOC | SHF_WRITE;
|
||||||
|
if (secsize < pe_shdr->virtual_size)
|
||||||
|
secsize = pe_shdr->virtual_size;
|
||||||
}
|
}
|
||||||
else if (! strcmp (shname, ".modname"))
|
else if (! strcmp (shname, ".modname"))
|
||||||
idx = MODNAME_SECTION;
|
idx = MODNAME_SECTION;
|
||||||
|
|
Loading…
Reference in a new issue