aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2006-12-08 05:35:57 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:37 -0500
commitaad094701c6355cb2b3d74a07ec0496f4a48c787 (patch)
tree00d5635dbd8ea74947f58528d71cb41f8ee0d3dc /scripts/kallsyms.c
parentd93f7de8c5dfefb030a5e65d0857176879bf78e9 (diff)
[PATCH] move kallsyms data to .rodata
Kallsyms data is never written to, so it can as well benefit from CONFIG_DEBUG_RODATA. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f359b730c2c5..8b809b264d18 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -265,7 +265,7 @@ static void write_src(void)
265 printf("#define ALGN .align 4\n"); 265 printf("#define ALGN .align 4\n");
266 printf("#endif\n"); 266 printf("#endif\n");
267 267
268 printf(".data\n"); 268 printf("\t.section .rodata, \"a\"\n");
269 269
270 /* Provide proper symbols relocatability by their '_text' 270 /* Provide proper symbols relocatability by their '_text'
271 * relativeness. The symbol names cannot be used to construct 271 * relativeness. The symbol names cannot be used to construct