Commit 53940ab0 authored by WANG Rui's avatar WANG Rui Committed by Yongzhen Zhang
Browse files

LoongArch: Calculate various sizes in the linker script

mainline inclusion
from mainline-v6.5-rc1
commit 414cefc7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MWTU


CVE: NA

--------------------------------

Taking the address delta between symbols in different sections is not
supported by the LLVM IAS. Instead, do this in the linker script, so
the same data can be properly referenced in assembly.

Signed-off-by: default avatarYongzhen Zhang <zhangyongzhen@kylinos.cn>
Signed-off-by: default avatarWANG Rui <wangrui@loongson.cn>
Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
[chenhuacai: Fix build with !CONFIG_EFI_STUB]
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 6496a837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment