lkml.org 
[lkml]   [2011]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 06/10] x86-64: Remove vsyscall number 3 (venosys)
    Date
    It just segfaults since April 2008 (a4928cff), so I'm pretty sure
    that nothing uses it. And having an empty section makes the linker
    script a bit fragile.

    Signed-off-by: Andy Lutomirski <luto@mit.edu>
    ---
    arch/x86/kernel/vmlinux.lds.S | 4 ----
    arch/x86/kernel/vsyscall_64.c | 3 ---
    2 files changed, 0 insertions(+), 7 deletions(-)

    diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
    index 3c1ec1c..1583238 100644
    --- a/arch/x86/kernel/vmlinux.lds.S
    +++ b/arch/x86/kernel/vmlinux.lds.S
    @@ -182,10 +182,6 @@ SECTIONS
    *(.vsyscall_2)
    }

    - .vsyscall_3 ADDR(.vsyscall_0) + 3072: AT(VLOAD(.vsyscall_3)) {
    - *(.vsyscall_3)
    - }
    -
    . = ALIGN(__vsyscall_0 + PAGE_SIZE, PAGE_SIZE);

    #undef VSYSCALL_ADDR
    diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
    index 3e8dac7..2907197 100644
    --- a/arch/x86/kernel/vsyscall_64.c
    +++ b/arch/x86/kernel/vsyscall_64.c
    @@ -209,9 +209,6 @@ vgetcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *tcache)
    return 0;
    }

    -static long __vsyscall(3) venosys_1(void)
    -{
    - return -ENOSYS;
    }

    /* Assume __initcall executes before all user space. Hopefully kmod
    --
    1.7.5.1


    \
     
     \ /
      Last update: 2011-05-31 15:19    [W:4.120 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site