LoongArch: Calculate various sizes in the linker script
authorWANG Rui <wangrui@loongson.cn>
Thu, 29 Jun 2023 12:58:42 +0000 (20:58 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Jun 2023 12:58:42 +0000 (20:58 +0800)
commit414cefc798a30895d61e9d5b010fcf350af782d6
treeac461832b70af66af685a23a3486506097bf9cee
parent0d03e9dce5c91d841a35af05ca61a5cf318f5064
LoongArch: Calculate various sizes in the linker script

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: WANG Rui <wangrui@loongson.cn>
Signed-off-by: WANG Xuerui <git@xen0n.name>
[chenhuacai: Fix build with !CONFIG_EFI_STUB]
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/efi-header.S
arch/loongarch/kernel/head.S
arch/loongarch/kernel/vmlinux.lds.S