projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0124fbb
)
LoongArch: Remove a redundant checking in relocator
author
Xi Ruoyao
<xry111@xry111.site>
Sat, 20 Jul 2024 14:41:07 +0000
(22:41 +0800)
committer
Huacai Chen
<chenhuacai@loongson.cn>
Sat, 20 Jul 2024 14:41:07 +0000
(22:41 +0800)
With our linker script "relocated_addr >= VMLINUX_LOAD_ADDRESS" should
be always true.
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/relocate.c
patch
|
blob
|
history
diff --git
a/arch/loongarch/kernel/relocate.c
b/arch/loongarch/kernel/relocate.c
index
d142061
..
e3836f0
100644
(file)
--- a/
arch/loongarch/kernel/relocate.c
+++ b/
arch/loongarch/kernel/relocate.c
@@
-35,9
+35,7
@@
static inline void __init relocate_relative(void)
if (rela->r_info != R_LARCH_RELATIVE)
continue;
- if (relocated_addr >= VMLINUX_LOAD_ADDRESS)
- relocated_addr = (Elf64_Addr)RELOCATED(relocated_addr);
-
+ relocated_addr = (Elf64_Addr)RELOCATED(relocated_addr);
*(Elf64_Addr *)RELOCATED(addr) = relocated_addr;
}
}