]> code.ossystems Code Review - openembedded-core.git/commit
grub: fix load module all_video failed
authorHongxu Jia <hongxu.jia@windriver.com>
Wed, 17 Aug 2016 08:57:30 +0000 (04:57 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Aug 2016 16:44:16 +0000 (17:44 +0100)
commit17e7eb96e5446821ad81977ac9ccac26b05e67a7
treed06099e3a0000722be764793ff78c442110528d5
parent640676226bb351420a0a8b2d2a3c120ae42da11e
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
--------------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch [new file with mode: 0644]
meta/recipes-bsp/grub/grub2.inc