public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/arm/morello/main] TODO(vdso): aarch64: morello: disable VDSO loading
@ 2023-03-03  9:58 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2023-03-03  9:58 UTC (permalink / raw)
  To: glibc-cvs

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

commit 47e61ba7720c1c646077318e079dcb75224b1001
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Tue Feb 21 16:47:37 2023 +0000

    TODO(vdso): aarch64: morello: disable VDSO loading
    
    Once the kernel starts providing a VDSO, old binaries should continue
    to work (without using the new VDSO).  For this we set the vdso to 0
    independently of auxv, otherwise glibc attempts to load it even if the
    target has no vdso symbols specified and the load can crash since the
    setup code is not purecap compatible.

Diff:
---
 sysdeps/unix/sysv/linux/aarch64/morello/dl-auxv.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/sysdeps/unix/sysv/linux/aarch64/morello/dl-auxv.h b/sysdeps/unix/sysv/linux/aarch64/morello/dl-auxv.h
new file mode 100644
index 0000000000..94669f975d
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/aarch64/morello/dl-auxv.h
@@ -0,0 +1,21 @@
+/* Auxiliary vector processing.  Morello version.
+   Copyright (C) 2023 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
+
+/* Disable VDSO loading even if Linux provides one as it may crash.  */
+#define DL_PLATFORM_AUXV \
+  GLRO(dl_sysinfo_dso) = 0;

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

only message in thread, other threads:[~2023-03-03  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03  9:58 [glibc/arm/morello/main] TODO(vdso): aarch64: morello: disable VDSO loading Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).