grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Ignore xen all_video module emptiness


From: Andrei Borzenkov
Subject: Re: [PATCH] Ignore xen all_video module emptiness
Date: Sun, 29 Jan 2017 13:04:56 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

29.01.2017 12:37, Vladimir 'phcoder' Serbinenko пишет:
> Not tested yet. If there are no opposition I'll test and commit it.
> 
> 
...
> diff --git a/util/grub-module-verifierXX.c b/util/grub-module-verifierXX.c
> index 9c04caa..c79c1cb 100644
> --- a/util/grub-module-verifierXX.c
> +++ b/util/grub-module-verifierXX.c
...
> -check_symbols (const struct grub_module_verifier_arch *arch, Elf_Ehdr *e)
> +check_symbols (const struct grub_module_verifier_arch *arch,
> +            Elf_Ehdr *e, const char *modname,
> +            const char **whitelist_empty)
>  {
>    Elf_Sym *sym;
>    Elf_Word size, entsize;
> @@ -196,7 +212,12 @@ check_symbols (const struct grub_module_verifier_arch 
> *arch, Elf_Ehdr *e)

I guess it needs some explanation in comments just before this line,
otherwise OK from me.

>    sym = get_symtab (arch, e, &size, &entsize);
>    if (!sym)
>      {
> -      Elf_Shdr *s = find_section (arch, e, ".moddeps");
> +      Elf_Shdr *s;
> +
> +      if (is_whitelisted (modname, whitelist_empty))
> +     return;
> +
> +      s = find_section (arch, e, ".moddeps");
>  
>        if (!s)
>       grub_util_error ("no symbol table and no .moddeps section");




reply via email to

[Prev in Thread] Current Thread [Next in Thread]