forked from pool/grub2
f922778020
This blocks getting binutils 2.27 into Factory, so if accepted please forward there. - binutils 2.27 creates empty modules without a symtab. Add patch grub2-accept-empty-module.patch to not reject them. OBS-URL: https://build.opensuse.org/request/show/424063 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=230
21 lines
939 B
Diff
21 lines
939 B
Diff
Accept empty modules
|
|
|
|
For the Xen platform the all_video.mod module is empty.
|
|
With old binutils the .symtab section remained (containing
|
|
only section symbols), so the check didn't trigger, but starting
|
|
with binutils 2.27 not even a .symtab remains. As there are
|
|
also no relocations that's no problem (and that is checked
|
|
independendly).
|
|
--- grub-2.02~beta3/util/grub-module-verifierXX.c.mm 2016-02-11 10:57:41.000000000 +0000
|
|
+++ grub-2.02~beta3/util/grub-module-verifierXX.c 2016-08-31 15:26:36.000000000 +0000
|
|
@@ -199,7 +199,8 @@ check_symbols (const struct grub_module_
|
|
Elf_Shdr *s = find_section (arch, e, ".moddeps");
|
|
|
|
if (!s)
|
|
- grub_util_error ("no symbol table and no .moddeps section");
|
|
+ /*grub_util_error ("no symbol table and no .moddeps section");*/
|
|
+ return; /* An empty module happens for all_video.module for Xen */
|
|
|
|
if (!s->sh_size)
|
|
grub_util_error ("no symbol table and empty .moddeps section");
|