diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2016-08-17 04:57:30 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-23 17:44:39 +0100 |
commit | 86164406ddb8d4bb138eb3e992897f2eed422f3c (patch) | |
tree | 85303f34bdbabd6aebea5861decfd051086cdf92 /meta/recipes-bsp/grub/grub2.inc | |
parent | ddaf84ce8640034e028d794131d88a2453ab0bc9 (diff) | |
download | poky-86164406ddb8d4bb138eb3e992897f2eed422f3c.tar.gz |
grub: fix load module all_video failed
While using oe-core toolchain to strip grub module 'all_video.mod',
it stripped symbol table:
--------------
root@localhost:~# objdump -t all_video.mod
all_video.mod: file format elf64-x86-64
SYMBOL TABLE:
no symbols
--------------
It caused grub to load module all_video failed.
(This module will be loaded by defalut which configed in grub.cfg)
--------------
grub> insmod all_video
error: no symbol table.
--------------
Tweak strip option to keep symbol .module_license could workaround
the issue.
--------------
root@localhost:~# objdump -t all_video.mod
all_video.mod: file format elf64-x86-64
SYMBOL TABLE:
0000000000000000 l d .text 0000000000000000 .text
0000000000000000 l d .data 0000000000000000 .data
0000000000000000 l d .module_license 0000000000000000 .module_license
0000000000000000 l d .bss 0000000000000000 .bss
0000000000000000 l d .moddeps 0000000000000000 .moddeps
0000000000000000 l d .modname 0000000000000000 .modname
--------------
(From OE-Core rev: 17e7eb96e5446821ad81977ac9ccac26b05e67a7)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub/grub2.inc')
-rw-r--r-- | meta/recipes-bsp/grub/grub2.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index d77a0d4fd9..b10f633aae 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc | |||
@@ -12,6 +12,7 @@ LICENSE = "GPLv3" | |||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
13 | 13 | ||
14 | SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \ | 14 | SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \ |
15 | file://grub-module-explicitly-keeps-symbole-.module_license.patch \ | ||
15 | file://grub-2.00-fpmath-sse-387-fix.patch \ | 16 | file://grub-2.00-fpmath-sse-387-fix.patch \ |
16 | file://check-if-liblzma-is-disabled.patch \ | 17 | file://check-if-liblzma-is-disabled.patch \ |
17 | file://fix-issue-with-flex-2.5.37.patch \ | 18 | file://fix-issue-with-flex-2.5.37.patch \ |