diff options
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.patch | 21 |
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 @@ | |||
1 | From 7461a3de38b66edbe2f5593f9bdab9f2704d32bc Mon Sep 17 00:00:00 2001 | 1 | From 917133acc701dbc4636165d3b08d15dc5829a06f Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Wed, 17 Aug 2016 04:06:34 -0400 | 3 | Date: Wed, 17 Aug 2016 04:06:34 -0400 |
4 | Subject: [PATCH] grub module explicitly keeps symbole .module_license | 4 | Subject: [PATCH] grub module explicitly keeps symbole .module_license |
5 | 5 | ||
6 | While using oe-core toolchain to strip grub module 'all_video.mod', | 6 | While using oe-core toolchain to strip grub module 'all_video.mod', |
7 | it stripped symbol table: | 7 | it stripped symbol table: |
8 | -------------- | ||
9 | root@localhost:~# objdump -t all_video.mod | ||
10 | 8 | ||
9 | --------------- | ||
10 | root@localhost:~# objdump -t all_video.mod | ||
11 | |||
11 | all_video.mod: file format elf64-x86-64 | 12 | all_video.mod: file format elf64-x86-64 |
12 | 13 | ||
13 | SYMBOL TABLE: | 14 | SYMBOL 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 | ||
46 | Index: grub-2.02/grub-core/genmod.sh.in | 47 | diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in |
47 | =================================================================== | 48 | index 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 \ |