mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
fa809fd073
Drop patches that have been upstreamed. Refresh others. This version dropped extra_deps.lst from the tarball [1] and that leads to build failures. Restore it in do_configure for now. [1] https://git.savannah.gnu.org/cgit/grub.git/commit/?id=b835601c7639ed1890f2d3db91900a8506011a8e (From OE-Core rev: 7c8e1e48075f7f54aec9d295605c982f440be5d5) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From b47029e8e582d17c6874d2622fe1a5b834377dbb Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Fri, 26 Mar 2021 11:59:43 -0700
|
|
Subject: [PATCH] RISC-V: Restore the typcast to 64bit type
|
|
|
|
this makes the type promotions clear and explicit
|
|
It was already typecasted to long but was accidentally dropped in [1]
|
|
which stated to cause failures on riscv32 as reported in [2]
|
|
|
|
[1] https://git.savannah.gnu.org/cgit/grub.git/commit/?id=2bf40e9e5be9808b17852e688eead87acff14420
|
|
[2] https://savannah.gnu.org/bugs/index.php?60283
|
|
|
|
Upstream-Status: Submitted
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Cc: Andreas Schwab <schwab@suse.de>
|
|
Cc: Daniel Kiper <daniel.kiper@oracle.com>
|
|
Cc: Chester Lin <clin@suse.com>
|
|
Cc: Nikita Ermakov <arei@altlinux.org>
|
|
Cc: Alistair Francis <alistair.francis@wdc.com>
|
|
|
|
---
|
|
util/grub-mkimagexx.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c
|
|
index e50b295..2f09255 100644
|
|
--- a/util/grub-mkimagexx.c
|
|
+++ b/util/grub-mkimagexx.c
|
|
@@ -1310,7 +1310,7 @@ SUFFIX (relocate_addrs) (Elf_Ehdr *e, struct section_metadata *smd,
|
|
*/
|
|
|
|
sym_addr += addend;
|
|
- off = sym_addr - target_section_addr - offset - image_target->vaddr_offset;
|
|
+ off = (grub_int64_t)sym_addr - target_section_addr - offset - image_target->vaddr_offset;
|
|
|
|
switch (ELF_R_TYPE (info))
|
|
{
|