public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] put sys_call_table into R/O data
@ 2003-04-30 13:42 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2003-04-30 13:42 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


Hi Linus,

Here's a patch that puts the system call table into the R/O data section of
the i386.

David

diff -uNr -x'*.o' -x'.*' -xTAGS linux-2.5.67/arch/i386/kernel/entry.S linux-2.5.67-afs/arch/i386/kernel/entry.S
--- linux-2.5.67/arch/i386/kernel/entry.S	2003-03-28 11:37:52.000000000 +0000
+++ linux-2.5.67-afs/arch/i386/kernel/entry.S	2003-04-30 14:38:32.000000000 +0100
@@ -582,8 +582,8 @@
 	pushl $do_spurious_interrupt_bug
 	jmp error_code
 
-.data
-ENTRY(sys_call_table)
+.section .rodata
+sys_call_table:
 	.long sys_restart_syscall	/* 0 - old "setup()" system call, used for restarting */
 	.long sys_exit
 	.long sys_fork
@@ -852,6 +852,6 @@
  	.long sys_clock_gettime		/* 265 */
  	.long sys_clock_getres
  	.long sys_clock_nanosleep
- 
- 
+
+
 nr_syscalls=(.-sys_call_table)/4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-30 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-30 13:42 [PATCH] put sys_call_table into R/O data David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox