On Mon, Mar 6, 2023 at 7:21 PM Michael Chang wrote:
>
> On Mon, Mar 06, 2023 at 04:22:53PM -0800, Atish Patra wrote:
> > On Mon, Mar 6, 2023 at 1:25 PM Fabian Vogt wrote:
> > >
> > > Hi,
> > >
> > > Am Montag, 6. März 2023, 21:59:23 CET schrieb Daniel Kiper:
> > > > Adding Gary and Michael...
> >
In grub-module-verifierXX.c, the function grub_module_verifyXX() performs an
initial check that the ELF section headers are within the module's size, but
doesn't check if the sections being accessed have contents that are within the
module's size. In particular, we need to check that sh_offset and
Glenn Washburn writes:
> If the configure option --enable-efi-debug is given, then enable the
> printing early in EFI startup of the command needed to load symbols for
> the GRUB EFI kernel. This is needed because EFI firmware determines where
> to load the GRUB EFI at runtime, and so the relevan
This series unifies the linux loader for ARM64 & RISC-V. The linux loader
for ARM64 is pretty much arch independent. Thus, this series just moves
it to the common directory and update the make files.
This series also removes the arch specific kernel image haders for
ARM64, RISC-V, ARM as suggested
The arch specific image header details are not very useful as
most of the grub just looks at the PE/COFF spec parameters (PE32 magic
and header offset).
Remove the arch specific images headers and define a generic
arch headers that provide enough PE/COFF fields for grub to parse kernel
images corr
ARM64 linux loader code is written in such a way that it can be reused
across different architectures without much change. Move it to common
code so that RISC-V doesn't have to define a separate loader.
Signed-off-by: Atish Patra
Reviewed-by: Daniel Kiper
---
grub-core/Makefile.core.def
RISC-V doesn't have to do anything very different from other architectures
to loader EFI stub linux kernel. As a result, just use the common linux
loader instead of defining a RISC-V specific linux loader.
Signed-off-by: Atish Patra
Reviewed-by: Daniel Kiper
---
grub-core/Makefile.core.def|
On Thu, Mar 09, 2023 at 02:10:54AM -0800, Atish Patra wrote:
> On Mon, Mar 6, 2023 at 7:21 PM Michael Chang wrote:
> >
> > On Mon, Mar 06, 2023 at 04:22:53PM -0800, Atish Patra wrote:
> > > On Mon, Mar 6, 2023 at 1:25 PM Fabian Vogt wrote:
> > > >
> > > > Hi,
> > > >
> > > > Am Montag, 6. März 20