summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/module.lds.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/module.lds.h')
-rw-r--r--arch/riscv/include/asm/module.lds.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/module.lds.h b/arch/riscv/include/asm/module.lds.h
new file mode 100644
index 000000000..1075beae1
--- /dev/null
+++ b/arch/riscv/include/asm/module.lds.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* Copyright (C) 2017 Andes Technology Corporation */
+#ifdef CONFIG_MODULE_SECTIONS
+SECTIONS {
+ .plt : { BYTE(0) }
+ .got : { BYTE(0) }
+ .got.plt : { BYTE(0) }
+}
+#endif