summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
diff options
context:
space:
mode:
authorAdrian Calianu <adrian.calianu@enea.com>2018-03-13 09:37:50 +0100
committerMartin Borg <martin.borg@enea.com>2018-04-17 15:28:34 +0200
commitad2bb07b6cd98da169118850671a22e60481bb44 (patch)
treef105613df5e06c826a411b267b9e9fa03f8972c6 /recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
parent5d72e4c556016bd800d1c19448228a68757f1129 (diff)
downloadmeta-enea-bsp-common-ad2bb07b6cd98da169118850671a22e60481bb44.tar.gz
grub: upgraded grub versionpyro-nfvaccess
recipes are backported from master branch and updated to build for aarch64 and generate startup.nsh. It is required to generate single VNF image for qemuarm64. Signed-off-by: Adrian Calianu <adrian.calianu@enea.com> Signed-off-by: Martin Borg <martin.borg@enea.com>
Diffstat (limited to 'recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch')
-rw-r--r--recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch b/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
new file mode 100644
index 0000000..935c472
--- /dev/null
+++ b/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
@@ -0,0 +1,61 @@
1From 7461a3de38b66edbe2f5593f9bdab9f2704d32bc Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 17 Aug 2016 04:06:34 -0400
4Subject: [PATCH] grub module explicitly keeps symbole .module_license
5
6While using oe-core toolchain to strip grub module 'all_video.mod',
7it stripped symbol table:
8--------------
9root@localhost:~# objdump -t all_video.mod
10
11all_video.mod: file format elf64-x86-64
12
13SYMBOL TABLE:
14no symbols
15--------------
16
17It caused grub to load module all_video failed.
18--------------
19grub> insmod all_video
20error: no symbol table.
21--------------
22
23Tweak strip option to keep symbol .module_license could workaround
24the issue.
25--------------
26root@localhost:~# objdump -t all_video.mod
27
28all_video.mod: file format elf64-x86-64
29
30SYMBOL TABLE:
310000000000000000 l d .text 0000000000000000 .text
320000000000000000 l d .data 0000000000000000 .data
330000000000000000 l d .module_license 0000000000000000 .module_license
340000000000000000 l d .bss 0000000000000000 .bss
350000000000000000 l d .moddeps 0000000000000000 .moddeps
360000000000000000 l d .modname 0000000000000000 .modname
37--------------
38
39Upstream-Status: Pending
40
41Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
42---
43 grub-core/genmod.sh.in | 2 +-
44 1 file changed, 1 insertion(+), 1 deletion(-)
45
46diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
47index 76df0bb..39a9cfc 100644
48--- a/grub-core/genmod.sh.in
49+++ b/grub-core/genmod.sh.in
50@@ -59,7 +59,7 @@ if test x@TARGET_APPLE_CC@ != x1; then
51 if test x@platform@ != xemu; then
52 @STRIP@ --strip-unneeded \
53 -K grub_mod_init -K grub_mod_fini \
54- -K _grub_mod_init -K _grub_mod_fini \
55+ -K _grub_mod_init -K _grub_mod_fini -K .module_license \
56 -R .note.gnu.gold-version -R .note.GNU-stack \
57 -R .note -R .comment $tmpfile || exit 1
58 fi
59--
602.8.1
61