util/grub-mkimagexx: Optimize code using pc variable
We already have the pc variable, no need to calculate it again. Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
985631c3d9
commit
1385254f17
@ -1156,7 +1156,7 @@ SUFFIX (relocate_addrs) (Elf_Ehdr *e, struct section_metadata *smd,
|
||||
{
|
||||
grub_int64_t off;
|
||||
|
||||
off = sym_addr - target_section_addr - offset - image_target->vaddr_offset;
|
||||
off = sym_addr - pc;
|
||||
|
||||
grub_loongarch64_b26 (t32, off);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user