This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/19767] vdso is not used with static linking


https://sourceware.org/bugzilla/show_bug.cgi?id=19767

--- Comment #15 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Adhemerval Zanella
<azanella@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5e855c8954014bca7b0d6f07312ec09553695ffd

commit 5e855c8954014bca7b0d6f07312ec09553695ffd
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu May 30 08:04:06 2019 -0300

    s390: Enable VDSO for static linking

    Although s390 only enables vDSO for dynamically linked elf binaries
    (arch/s390/kernel/vdso.c:217), there is no indication in the code or
    associated commit message for why not enable it for statically linked
    binaries as well.  To double check, I rebuilt a kernel with the
    check removed and the vDSO does work for static build for supplied
    symbols.

    Checked on s390x-linux-gnu and s390-linux-gnu.

        [BZ #19767]
        * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
        * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
        * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
        (ALWAYS_USE_VSYSCALL): Define.
        * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
        (ALWAYS_USE_VSYSCALL): Likewise.

--- Comment #16 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Adhemerval Zanella
<azanella@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c9c1a413c01eeda679896ebb761f8feb5236fe9c

commit c9c1a413c01eeda679896ebb761f8feb5236fe9c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu May 30 09:47:48 2019 -0300

    sparc: Enable VDSO for static linking

    Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

        [BZ #19767]
        * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
        * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
        * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
        Define.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]