aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/systbl.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S
index 6c1db3b6de2d..280d6b6955e2 100644
--- a/arch/powerpc/kernel/systbl.S
+++ b/arch/powerpc/kernel/systbl.S
@@ -12,7 +12,11 @@
#include <asm/ppc_asm.h>
+#ifdef CONFIG_RELOCATABLE
+.section .data.rel.ro,"aw"
+#else
.section .rodata,"a"
+#endif
#ifdef CONFIG_PPC64
.p2align 3