Enable VDSO for static linking on arm

System Internals / glibc - Rafael Ávila de Espíndola [espindo.la] - 3 December 2018 20:59 EST

I have tested that this builds and the resulting program still work. The kernel in gcc117 (which I ussed for testing) seems to be missing https://patchwork.kernel.org/patch/10060431/, so the vdso is never used.

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

6af956e5c0 Enable VDSO for static linking on arm
ChangeLog | 8 ++++++++
sysdeps/unix/sysv/linux/arm/init-first.c | 9 ++++-----
sysdeps/unix/sysv/linux/arm/libc-vdso.h | 6 +-----
sysdeps/unix/sysv/linux/arm/sysdep.h | 3 +++
4 files changed, 16 insertions(+), 10 deletions(-)

Upstream: sourceware.org


  • Share