summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch')
-rw-r--r--meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch21
1 files changed, 11 insertions, 10 deletions
diff --git a/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch b/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
index ffc2d40d89..26890261b7 100644
--- a/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
+++ b/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch
@@ -1,13 +1,14 @@
1From 7461a3de38b66edbe2f5593f9bdab9f2704d32bc Mon Sep 17 00:00:00 2001 1From 917133acc701dbc4636165d3b08d15dc5829a06f Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 17 Aug 2016 04:06:34 -0400 3Date: Wed, 17 Aug 2016 04:06:34 -0400
4Subject: [PATCH] grub module explicitly keeps symbole .module_license 4Subject: [PATCH] grub module explicitly keeps symbole .module_license
5 5
6While using oe-core toolchain to strip grub module 'all_video.mod', 6While using oe-core toolchain to strip grub module 'all_video.mod',
7it stripped symbol table: 7it stripped symbol table:
8--------------
9root@localhost:~# objdump -t all_video.mod
10 8
9---------------
10root@localhost:~# objdump -t all_video.mod
11
11all_video.mod: file format elf64-x86-64 12all_video.mod: file format elf64-x86-64
12 13
13SYMBOL TABLE: 14SYMBOL TABLE:
@@ -43,16 +44,16 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
43 grub-core/genmod.sh.in | 2 +- 44 grub-core/genmod.sh.in | 2 +-
44 1 file changed, 1 insertion(+), 1 deletion(-) 45 1 file changed, 1 insertion(+), 1 deletion(-)
45 46
46Index: grub-2.02/grub-core/genmod.sh.in 47diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
47=================================================================== 48index 1250589..dd14308 100644
48--- grub-2.02.orig/grub-core/genmod.sh.in 49--- a/grub-core/genmod.sh.in
49+++ grub-2.02/grub-core/genmod.sh.in 50+++ b/grub-core/genmod.sh.in
50@@ -56,7 +56,7 @@ if test x@TARGET_APPLE_LINKER@ != x1; th 51@@ -56,7 +56,7 @@ if test x@TARGET_APPLE_LINKER@ != x1; then
51 if test x@platform@ != xemu; then 52 if test x@platform@ != xemu; then
52 @TARGET_STRIP@ --strip-unneeded \ 53 @TARGET_STRIP@ --strip-unneeded \
53 -K grub_mod_init -K grub_mod_fini \ 54 -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 \
55+ -K _grub_mod_init -K _grub_mod_fini -K .module_license \ 56+ -K _grub_mod_init -K _grub_mod_fini -K .module_license \
56 -R .note.gnu.gold-version -R .note.GNU-stack \ 57 -R .note.gnu.gold-version -R .note.GNU-stack \
57 -R .note -R .comment -R .ARM.exidx $tmpfile || exit 1 58 -R .gnu.build.attributes \
58 fi 59 -R .rel.gnu.build.attributes \