]> git.hungrycats.org Git - linux/commitdiff
Work around binutils bug.
authorLinus Torvalds <torvalds@home.osdl.org>
Fri, 21 Nov 2003 07:35:57 +0000 (23:35 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 21 Nov 2003 07:35:57 +0000 (23:35 -0800)
This caused the system call code to test for the wrong number of
system calls, with resulting exciting results.

arch/i386/kernel/entry.S

index 361c5680b5999612d1eef8808f05d260c7d6a032..a8ec801f5423e99d996ddd67a6211e8b4e2421ff 100644 (file)
@@ -49,6 +49,8 @@
 #include <asm/page.h>
 #include "irq_vectors.h"
 
+#define nr_syscalls ((syscall_table_size)/4)
+
 EBX            = 0x00
 ECX            = 0x04
 EDX            = 0x08
@@ -881,4 +883,4 @@ ENTRY(sys_call_table)
        .long sys_fadvise64_64
        .long sys_ni_syscall    /* sys_vserver */
 
-nr_syscalls=(.-sys_call_table)/4
+syscall_table_size=(.-sys_call_table)