Re: [PATCH 03/15] modules: Don't allocate space for non-allocable sections.

2024-05-24 Thread Vladimir 'phcoder' Serbinenko
Reviewed-By: Vladimir Serbinenko On Fri, May 24, 2024 at 2:06 PM Mate Kukri wrote: > > From: Peter Jones > > Currently when loading grub modules, we allocate space for all sections, > including those without SHF_ALLOC set. We then copy the sections that > /do/ have SHF_ALLOC set into the alloca

[PATCH 03/15] modules: Don't allocate space for non-allocable sections.

2024-05-24 Thread Mate Kukri
From: Peter Jones Currently when loading grub modules, we allocate space for all sections, including those without SHF_ALLOC set. We then copy the sections that /do/ have SHF_ALLOC set into the allocated memory, leaving some of our allocation untouched forever. Additionally, on platforms with G