aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/conf
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/conf')
-rw-r--r--arch/riscv64/conf/init-link.S5
-rw-r--r--arch/riscv64/conf/kernel-link.S5
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/riscv64/conf/init-link.S b/arch/riscv64/conf/init-link.S
index ac7f858..f827245 100644
--- a/arch/riscv64/conf/init-link.S
+++ b/arch/riscv64/conf/init-link.S
@@ -31,4 +31,9 @@ SECTIONS {
__init_end = . ;
__kernel_size = <KERNEL_SIZE>;
+
+ .garbage : {
+ *(.note*)
+ *(.riscv.attributes)
+ }
}
diff --git a/arch/riscv64/conf/kernel-link.S b/arch/riscv64/conf/kernel-link.S
index 5673a64..2f000c9 100644
--- a/arch/riscv64/conf/kernel-link.S
+++ b/arch/riscv64/conf/kernel-link.S
@@ -26,4 +26,9 @@ SECTIONS {
}
__kernel_end = .;
+
+ .garbage : {
+ *(.note*)
+ *(.riscv.attributes)
+ }
}