diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2016-11-06 15:47:10 +0100 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-12-29 10:47:43 +0000 |
commit | 81aa969f2f227eb7c2ebf2d70a7df1a8a2bb56e0 (patch) | |
tree | c523b4d7970f433aafdc83c0c69ab02be3aa340a /testing/grub/grub2-accept-empty-module.patch | |
parent | b7b7d64c47f303769e4ef21202cd026d872b7492 (diff) | |
download | aports-81aa969f2f227eb7c2ebf2d70a7df1a8a2bb56e0.tar.bz2 aports-81aa969f2f227eb7c2ebf2d70a7df1a8a2bb56e0.tar.xz |
testing/grub: add grub-xenhost (pv-grub2)
Based on the Debian handling of grub-xen-host
grub2-accept-empty-module.patch from http://savannah.gnu.org/bugs/?49012
Diffstat (limited to 'testing/grub/grub2-accept-empty-module.patch')
-rw-r--r-- | testing/grub/grub2-accept-empty-module.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/grub/grub2-accept-empty-module.patch b/testing/grub/grub2-accept-empty-module.patch new file mode 100644 index 0000000000..d3d75457dc --- /dev/null +++ b/testing/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"); |