[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2] util/mkimage: Fix wrong PE32+ section sizes for some
From: |
Javier Martinez Canillas |
Subject: |
Re: [RFC PATCH v2] util/mkimage: Fix wrong PE32+ section sizes for some arches |
Date: |
Tue, 27 Apr 2021 12:19:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
Hello Adrian,
On 4/27/21 9:55 AM, John Paul Adrian Glaubitz wrote:
> Hi Javier!
>
> On 4/26/21 7:18 PM, Daniel Kiper wrote:
>> (...)
>> I think this should be:
>> layout->kernel_size = ALIGN_UP (layout->kernel_size,
>> GRUB_PE32_FILE_ALIGNMENT);
>>
>> Here we care about alignment in the PE file not in the memory. So,
>> I think we have to use GRUB_PE32_FILE_ALIGNMENT instead. Though
>> the result is the same...
>
> Let me know once you have a new version of the patch ready, I'll test it as
> quickly
> as possible.
>
Thanks! I was busy this morning with other things but I'll post a v3 now.
I'll keep your Tested-by tag since the size calculated should be the same,
but would be good to test it again just to make sure that's the case.
> Adrian
>
Best regards,
--
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement
Red Hat