From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 181723858C83; Fri, 3 Mar 2023 09:58:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 181723858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677837494; bh=tp5zoWWA05iEbF2eJ945h4TWtf29pLhL+SAvyU7lR9c=; h=From:To:Subject:Date:From; b=G5VOs0h11QGJugIPuMRlIxjAxcU6SI8uO6M7rOiyFbtOPuX+hZxNGLSi/jIDefWkg 9CwnUjZHUvl8kNnFl+tWOuVvptr9TwmPqyBhA4s3UHfXudpwoyPlZE2Bp0X6mR0riW QLBpoNbsvPqf2t2VNpXQqaUCBGrPeOIqXqQfDNuc= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] TODO(vdso): aarch64: morello: disable VDSO loading X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: b63904f34f426b2b7e3abc53d4f202e3bed8e9df X-Git-Newrev: 47e61ba7720c1c646077318e079dcb75224b1001 Message-Id: <20230303095814.181723858C83@sourceware.org> Date: Fri, 3 Mar 2023 09:58:14 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=47e61ba7720c1c646077318e079dcb75224b1001 commit 47e61ba7720c1c646077318e079dcb75224b1001 Author: Szabolcs Nagy 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 + . */ + +/* Disable VDSO loading even if Linux provides one as it may crash. */ +#define DL_PLATFORM_AUXV \ + GLRO(dl_sysinfo_dso) = 0;