summaryrefslogtreecommitdiff
path: root/user/grub/grub2-accept-empty-module.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:02:34 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:02:34 -0500
commit97a9fa2a372686cc873d1f966a769d3d80a7f054 (patch)
tree5b31a1ecbb1830f395f90ce032ff7d566171e996 /user/grub/grub2-accept-empty-module.patch
parent93c5f6a80e136230cc7972d1c36e2bd922f83d52 (diff)
downloadpackages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.gz
packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.bz2
packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.xz
packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.zip
user/grub: pull in, take, modernise a bit
Diffstat (limited to 'user/grub/grub2-accept-empty-module.patch')
-rw-r--r--user/grub/grub2-accept-empty-module.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/grub/grub2-accept-empty-module.patch b/user/grub/grub2-accept-empty-module.patch
new file mode 100644
index 000000000..d3d75457d
--- /dev/null
+++ b/user/grub/grub2-accept-empty-module.patch
@@ -0,0 +1,22 @@
+From: Michael Matz <matz@suse.com>
+
+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");