summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/module.lds.h
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-05-31 13:04:11 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2022-06-03 15:09:28 +0300
commitfcdfe9d22bed08409968a751e93112f742208be6 (patch)
tree14bbbe55e6c6e715223006e91160c55d6bd113ec /arch/loongarch/include/asm/module.lds.h
parentb74baf4ad05b5ebe3152592fb2fa80d51681392a (diff)
downloadlinux-fcdfe9d22bed08409968a751e93112f742208be6.tar.xz
LoongArch: Add ELF and module support
Add ELF-related definition and module relocation code for basic LoongArch support. Cc: Jessica Yu <jeyu@kernel.org> Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/asm/module.lds.h')
-rw-r--r--arch/loongarch/include/asm/module.lds.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/module.lds.h b/arch/loongarch/include/asm/module.lds.h
new file mode 100644
index 000000000000..31c1c0db11a3
--- /dev/null
+++ b/arch/loongarch/include/asm/module.lds.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* Copyright (C) 2020-2022 Loongson Technology Corporation Limited */
+SECTIONS {
+ . = ALIGN(4);
+ .plt : { BYTE(0) }
+ .plt.idx : { BYTE(0) }
+}