mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
LoongArch: Remove a redundant checking in relocator
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>
This commit is contained in:
parent
0124fbb4c6
commit
0ad158e4ef
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user