boot/grub: fix grub-mkimage with binutils >= 2.31
authorRomain Naour <romain.naour@smile.fr>
Thu, 13 Dec 2018 09:47:37 +0000 (10:47 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 13 Dec 2018 20:37:08 +0000 (21:37 +0100)
commit44fbfa08572cce4ba43a7c5ef70d249ace0e971f
tree0fcd57c316d0d400034d135463ef099ededd1f9d
parent70992f5b690516ff993068f5088d4fc4ae1fd7d9
boot/grub: fix grub-mkimage with binutils >= 2.31

While using pc_x86_64_efi_defconfig with a bleeding-edge x86_64 toolchain
based on binutils 2.31, the grub-mkimage command return this error:

grub-mkimage: error: relocation 0x4 is not implemented yet.

Backport an upstream patch [1] as suggested on openembedded mailing list [2].

[1] http://git.savannah.gnu.org/cgit/grub.git/commit/?id=842c390469e2c2e10b5aa36700324cd3bde25875
[2] http://lists.openembedded.org/pipermail/openembedded-core/2018-July/153054.html

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
boot/grub2/0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch [new file with mode: 0644]