From nobody Sat Nov 23 20:03:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1731443998; cv=none; d=zohomail.com; s=zohoarc; b=jK69uWivYGs4/LUB1MmS/zDOYqjFDYhvz/t2PTJDSsgs5swrlA8MyopkTbvPVqM0mIPi7GEsGwe+a4uJw60moUR7sW0Q2cXUpnYx+m/4IJ2AWbSu6JeHAGViLz6+6QbmvHIispw4klbctsjrtBoSbiJYhlCFdgz4M3VBFljoPg0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731443998; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=u0kRCYJEdfCPc7Ck3L3jOULPW0HIyB/R3/8bipse23E=; b=UV8PYL8iajXzJF5/0zTccKg+1XzR83jhkPKvyF7bqwHPiuwZnqX9PUJI3eycT6DDdqzWKtZ4jOwplTPKcRlMRsLVQS6wTkC4M4OquAfDvJXbE/BXxbr4se7Z84I1dFoC8fwMQfsrfdxdqic2Ziw9YdKauyeCWBD7fFM/BWEkFDs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731443998526105.20826141267935; Tue, 12 Nov 2024 12:39:58 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAxea-0001IT-O2; Tue, 12 Nov 2024 15:38:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAxeV-0001HP-9D for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:23 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAxeK-0008Ss-8w for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:16 -0500 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2e2e23f2931so4922781a91.0 for ; Tue, 12 Nov 2024 12:38:03 -0800 (PST) Received: from stoup.. (wsip-24-120-228-34.lv.lv.cox.net. [24.120.228.34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3894192sm9860a91.21.2024.11.12.12.38.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 12:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731443882; x=1732048682; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=u0kRCYJEdfCPc7Ck3L3jOULPW0HIyB/R3/8bipse23E=; b=hsZ7sJHeYTDFO5O0gJTT/maZgWLqsyBpBvHS7VWGMf7Qsh/UqejeY2Wi+whOpCjKtL pWQ7x63oAQ/SjLxRpPrY78o4FSv7XeNj1bsqHULyhnYhxeXn5d3GV59X14iYnlELu127 1qic6BRDFNU4J2A4O8x7ntvrNo0dMEUQzx487xkO3ZoNUZZcT7l/Sy3C2Z4bd48Eqbhz sksMNffpjdkLxX2AIzqlAQI0e5Z2rrbkaRPs/sXOi1KO78U0jxu0KmtZ/jQ3okHbgJ78 9qA3aYAsfB1/K5sM6f0Kr8G62ZxkxL+MXQHdj4lj/e/fqL+Qg2vxQ3RPtsJJHQFi+5WQ 48GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731443882; x=1732048682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u0kRCYJEdfCPc7Ck3L3jOULPW0HIyB/R3/8bipse23E=; b=UwvZ6aPZctHcSrRLIvs3mGcDXn4VQnNjSGmKF2TNGkKN6xnzfR5B9PTLD9knCtbER0 X1SEMvnE+A8lrFhk2K9Gr0L2gXWm44WCv9ybbYxTBhOgubcxuxG0M82Dn8u2+VFQYKf5 bsAxPor3Q98MTKNJD1eUn0WJ5mDQadrT4bn4EDFsvo1Y/BuUTSufcCmMHiBpc8SLaUpe qhB8WrAqybP48ZSIGKrk9LqELDwtxrz1pxFWLXo3oy0Z4GszWdnBIEacWmH2CHH0S/5W 8I2mp+zWD/KApzp7b7vTsGyw9v0P2wF0x2HuW0za3akvJBbSSsjtOTqANEvc3PDo7hz8 nk9g== X-Gm-Message-State: AOJu0YwY427oIDzMJiUBEXmM3/695m8THzcalD5X4jW+ZBRY0ON3yclp 6vXgwjkr/e99sJUq56fZqGFmoe23WfGm0MdVGlhG2wXPCsaUMsRZsSJ+J7Lrln7Ntk3w84/O1vq 1 X-Google-Smtp-Source: AGHT+IG+PusSF65DKFR2hLTKOhjc526pPP5zmfyLBEsSjciTtt65OE8TEDaqJ3a622vtVtknClVFHw== X-Received: by 2002:a17:90b:1b46:b0:2e0:9d3e:bc2a with SMTP id 98e67ed59e1d1-2e9b1784258mr21335772a91.32.1731443882158; Tue, 12 Nov 2024 12:38:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/6] linux-user: Honor elf alignment when placing images Date: Tue, 12 Nov 2024 12:37:52 -0800 Message-ID: <20241112203757.804320-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241112203757.804320-1-richard.henderson@linaro.org> References: <20241112203757.804320-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1731443999453116600 Content-Type: text/plain; charset="utf-8" Most binaries don't actually depend on more than page alignment, but any binary can request it. Not honoring this was a bug. This became obvious when gdb reported Failed to read a valid object file image from memory when examining some vdso which are marked as needing more than page alignment. Signed-off-by: Richard Henderson --- linux-user/elfload.c | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index d6ad77d27d..90e79a01b4 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -3179,7 +3179,8 @@ static void load_elf_image(const char *image_name, co= nst ImageSource *src, char **pinterp_name) { g_autofree struct elf_phdr *phdr =3D NULL; - abi_ulong load_addr, load_bias, loaddr, hiaddr, error; + abi_ulong load_addr, load_bias, loaddr, hiaddr, error, align; + size_t reserve_size, align_size; int i, prot_exec; Error *err =3D NULL; =20 @@ -3263,6 +3264,9 @@ static void load_elf_image(const char *image_name, co= nst ImageSource *src, =20 load_addr =3D loaddr; =20 + align =3D pow2ceil(info->alignment); + info->alignment =3D align; + if (pinterp_name !=3D NULL) { if (ehdr->e_type =3D=3D ET_EXEC) { /* @@ -3271,8 +3275,6 @@ static void load_elf_image(const char *image_name, co= nst ImageSource *src, */ probe_guest_base(image_name, loaddr, hiaddr); } else { - abi_ulong align; - /* * The binary is dynamic, but we still need to * select guest_base. In this case we pass a size. @@ -3290,10 +3292,7 @@ static void load_elf_image(const char *image_name, c= onst ImageSource *src, * Since we do not have complete control over the guest * address space, we prefer the kernel to choose some address * rather than force the use of LOAD_ADDR via MAP_FIXED. - * But without MAP_FIXED we cannot guarantee alignment, - * only suggest it. */ - align =3D pow2ceil(info->alignment); if (align) { load_addr &=3D -align; } @@ -3317,13 +3316,35 @@ static void load_elf_image(const char *image_name, = const ImageSource *src, * In both cases, we will overwrite pages in this range with mappings * from the executable. */ - load_addr =3D target_mmap(load_addr, (size_t)hiaddr - loaddr + 1, PROT= _NONE, + reserve_size =3D (size_t)hiaddr - loaddr + 1; + align_size =3D reserve_size; + + if (ehdr->e_type !=3D ET_EXEC && align > qemu_real_host_page_size()) { + align_size +=3D align - 1; + } + + load_addr =3D target_mmap(load_addr, align_size, PROT_NONE, MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | (ehdr->e_type =3D=3D ET_EXEC ? MAP_FIXED_NOREP= LACE : 0), -1, 0); if (load_addr =3D=3D -1) { goto exit_mmap; } + + if (align_size !=3D reserve_size) { + abi_ulong align_addr =3D ROUND_UP(load_addr, align); + abi_ulong align_end =3D align_addr + reserve_size; + abi_ulong load_end =3D load_addr + align_size; + + if (align_addr !=3D load_addr) { + target_munmap(load_addr, align_addr - load_addr); + } + if (align_end !=3D load_end) { + target_munmap(align_end, load_end - align_end); + } + load_addr =3D align_addr; + } + load_bias =3D load_addr - loaddr; =20 if (elf_is_fdpic(ehdr)) { --=20 2.43.0 From nobody Sat Nov 23 20:03:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1731443997; cv=none; d=zohomail.com; s=zohoarc; b=SDm/NUlfLbjHWCUAUT1bfEK61/6/39bczX9bg15f6ACpdgMeIMuyShK9gWEUQSlGLOQHLaxWGoH8mwv0QLvAIasVtI8+HtndCqsnIojCSGw36QrGESZg0wqhj6Jvebn+gCi/DZTY0mAh54h8tSXU7yZX0TJQupVvFVT/ee1v+3A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731443997; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=i9Tx+e50KlhsYgpRqVjdsO/z4tv3m55Kc+AlE2OCoQs=; b=bMBAw0A36CEiIQPk+yiP36MvJ0oLHcH4dSdNsap7JWE5aOf4gX6ginaUdTEC+AtPeP2gtPdciHaL0Z8Jpaq/9Ksm1inQHrMYXM9YkiBcB/I4gdZD2BUpNjYcjFkPmUZgolpb5D8HP2JzEAKTSqWMhoshIEJ+kLQZsQoh8znA8pM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731443997458837.1392892728438; Tue, 12 Nov 2024 12:39:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAxec-0001IV-J7; Tue, 12 Nov 2024 15:38:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAxeY-0001Hc-CG for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:23 -0500 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAxeK-0008Sw-8w for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:21 -0500 Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-7ee7e87f6e4so4532978a12.2 for ; Tue, 12 Nov 2024 12:38:04 -0800 (PST) Received: from stoup.. (wsip-24-120-228-34.lv.lv.cox.net. [24.120.228.34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3894192sm9860a91.21.2024.11.12.12.38.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 12:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731443883; x=1732048683; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=i9Tx+e50KlhsYgpRqVjdsO/z4tv3m55Kc+AlE2OCoQs=; b=s9KSLqLjSdP9FhTEzjVTREwqrBkjqLZW512iM3/GRgSdLm/FbX8jXzJEUGyUi0v91t KmHWIEmDqbYllapFCKgB/Fp8ckWa3bNpVAHGrT5RI+ZNm+3Uf5c/6f5/CSl2sMsK6jkl ER1KnCnvfAU6q2I7a8bTM3PLymZVRjLIdmmLXgVKgj0wykW1kxDGNMDGePtInQCLG6KW kLEVjUUy+LPcRfa46DWdcEpO0TL3jrr/PTH9VPNfRuS7AafnN57eu5p8DVjGRAiDuQxf MfOlU2wDHEh6Dr13a1sMRgV1Y546Vm8coD1fS/w319mmOSAoCbrrqB40BJNiKes/wFQR zMkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731443883; x=1732048683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i9Tx+e50KlhsYgpRqVjdsO/z4tv3m55Kc+AlE2OCoQs=; b=nWyIluYh+jUqw04fV8LmaODWKMxeShepSI7vD3shoRqz1bH8OxQBN+aFGttSYbTn6e lMqdE7cnV5fdJijIau4sjCNdETq+1W0y7soPt5azqKoaVFviWRir4T0tQbPvpc/9B1Ak X2GlUEJtXD49IZxdaQrynqlNdseJavpDQlflRtbQDe6+hd0UMn6K33lXM0O8OiO6zoU5 HRrcIP+LX7e8XVWFz51FYATA1Pp8meOa47c433N/PZzGO7JcUuBJM7SIk4hu9hd10A0D 2QppoXLLroWMlgCv0+Hn9iWuwkintmzD2Tkcy3xXU6s9GVZTBuEEu/4MxCuQ3VUfWdxz gYbg== X-Gm-Message-State: AOJu0YyoLq3HuMAmxh5cdT3t4ZzsSi8J5mSIVqAclt804Hj3rzs8zU1C 6YTRG7jFm7ZtMMXnHXcr7Pzo9gXX//PJgPJYssO3yqsBZYHPw4gkgPFlwYbkCkrwId/0LGVFTg/ V X-Google-Smtp-Source: AGHT+IEWesqoAAo3sX2bA7Clerqd327iPQ5JhX8BTOxXQjcvZ3repDP9WJYn/VfAYNn8JGXilqpsdg== X-Received: by 2002:a17:90b:3847:b0:2e2:e159:8f7b with SMTP id 98e67ed59e1d1-2e9b16e6415mr21149876a91.3.1731443883349; Tue, 12 Nov 2024 12:38:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/6] linux-user: Drop image_info.alignment Date: Tue, 12 Nov 2024 12:37:53 -0800 Message-ID: <20241112203757.804320-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241112203757.804320-1-richard.henderson@linaro.org> References: <20241112203757.804320-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1731443999387116600 Content-Type: text/plain; charset="utf-8" This field is write-only. Use only the function-local variable within load_elf_image. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/qemu.h | 1 - linux-user/elfload.c | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 895bdd722a..67bc81b149 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -44,7 +44,6 @@ struct image_info { abi_ulong file_string; uint32_t elf_flags; int personality; - abi_ulong alignment; bool exec_stack; =20 /* Generic semihosting knows about these pointers. */ diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 90e79a01b4..ef9cffbe4a 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -3220,7 +3220,7 @@ static void load_elf_image(const char *image_name, co= nst ImageSource *src, * amount of memory to handle that. Locate the interpreter, if any. */ loaddr =3D -1, hiaddr =3D 0; - info->alignment =3D 0; + align =3D 0; info->exec_stack =3D EXSTACK_DEFAULT; for (i =3D 0; i < ehdr->e_phnum; ++i) { struct elf_phdr *eppnt =3D phdr + i; @@ -3234,7 +3234,7 @@ static void load_elf_image(const char *image_name, co= nst ImageSource *src, hiaddr =3D a; } ++info->nsegs; - info->alignment |=3D eppnt->p_align; + align |=3D eppnt->p_align; } else if (eppnt->p_type =3D=3D PT_INTERP && pinterp_name) { g_autofree char *interp_name =3D NULL; =20 @@ -3264,8 +3264,7 @@ static void load_elf_image(const char *image_name, co= nst ImageSource *src, =20 load_addr =3D loaddr; =20 - align =3D pow2ceil(info->alignment); - info->alignment =3D align; + align =3D pow2ceil(align); =20 if (pinterp_name !=3D NULL) { if (ehdr->e_type =3D=3D ET_EXEC) { --=20 2.43.0 From nobody Sat Nov 23 20:03:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1731443983; cv=none; d=zohomail.com; s=zohoarc; b=dUk9AhVk1mrrbUWJYS2B0Ff0FUiN8JwuMUkpfs44TS2Jcos5ZX6kHULnuex6JTpk4TvbRYUQB4yPlXD6x72+GX28hJgjrC4xgI2MU85M0OI96V1/4bRsFhx4SI9KKgIHxALtEDyvfn0HS23ZH13CmBPVj1qe3oGRXaEheFfsfgk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731443983; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=83DOC5EhuvVszgMTN5y3DcTwu/SHcyPUnQNhN45Z82Q=; b=hLhSpMu71MXriTEDQJMXi/QlStPbEdJrq/ispQJ8+eCajZmMtdPdY6ZESjaWfaR/mLOwZfy/QlocapgHPjj7GzEX7JULJVQ6lh4LSvrgoT2inzAo43bi0kan9LeI/XuJxmGcpHsfxLagc+QA0UzbXPrvEtQ7KVIBm2eifwNcTUA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731443983855283.6852965040671; Tue, 12 Nov 2024 12:39:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAxek-0001KP-Jx; Tue, 12 Nov 2024 15:38:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAxeV-0001HN-9C for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:23 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAxeK-0008T0-5L for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:10 -0500 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-7f450f7f11dso2111039a12.2 for ; Tue, 12 Nov 2024 12:38:05 -0800 (PST) Received: from stoup.. (wsip-24-120-228-34.lv.lv.cox.net. [24.120.228.34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3894192sm9860a91.21.2024.11.12.12.38.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 12:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731443884; x=1732048684; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=83DOC5EhuvVszgMTN5y3DcTwu/SHcyPUnQNhN45Z82Q=; b=E25HWWBJ19L+TGiF3FS14SyQ8PKWmI621OIVxI2RahoTaw8cdN60OtHf/Kg8eBl+AG p+aBqEOIwMxmGgTDyOw3zfKNQSrZfxxmySD6dI2oDA3YVb8+NGrFdptAC2+YPKs0CUfF BPryxGzeGAfGWpLWZhj30WH5hzPBs7xhKbPB1QjPYJoXumVWxfuqVIvC8dbHRfRbAJJI KwgMBlNZmfZMKIarifamThW+LLdnwByzDEhSwKBPhKZ8FClmbJeBHintXp3MJ9Duaeaz ruZHn6QxTM+UYCVs7C7NqDIjrNbaRyKDyloeQTtjWZOyQGSCtS7Isx7F8xKCq69QIRLV TZMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731443884; x=1732048684; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=83DOC5EhuvVszgMTN5y3DcTwu/SHcyPUnQNhN45Z82Q=; b=xCGvS9gEtGwJBovSUxjMOVJ5zJbCGNz2tR0sgOWobQpWSpq7WLtn9rFvw8TMThIQed 8epOw8Tg/skkn+WPriTUOKsSPTu/pEINsCHsvTUUIPXAsDvH/XqIIUpyEk6yFsfvtK6Q 1NoKJYMvcTqa3hxqKMnXTsts3Vdw8ppsP79lVk+3FtmZ1aLcP3OuVKRhQ5d7mEt+60Ji mJWSpCLMc/cVPQlU2j7XQ/U35KoBkp6JDoz6tqBjCFW9dN2Y7vuz3zreBtBl5XCO3hVQ 00BSiuXpfS5iUAR7cwZ4LejxjWOGtqJKeh7kF5cJVkCNKon+LYecWZrcgNsmPhGytYYJ vgJA== X-Gm-Message-State: AOJu0YyFAqxxD6kNfmCQR5vwsJ+kddSwHPpqeTFZkqu9UjtSvZOqiT/W gpOswgP+8/k7GFIWcK0lRPxMAvIbC+Flqrb/C2mChgCVbDuCgMG+brLa1AgSNTsadtGd3pittj2 v X-Google-Smtp-Source: AGHT+IF1Rh/aeP1HttI7mUohCu3+WfDPCKReXgPUVahQpVgS22r+LUJ0yFTSZgLsBx/k2fPB7n5UXg== X-Received: by 2002:a17:90b:1d89:b0:2e2:c15f:1ffe with SMTP id 98e67ed59e1d1-2e9b14ce798mr23715683a91.0.1731443884472; Tue, 12 Nov 2024 12:38:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 3/6] linux-user/aarch64: Reduce vdso alignment to 4k Date: Tue, 12 Nov 2024 12:37:54 -0800 Message-ID: <20241112203757.804320-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241112203757.804320-1-richard.henderson@linaro.org> References: <20241112203757.804320-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1731443985492116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/aarch64/Makefile.vdso | 5 +++-- linux-user/aarch64/vdso-be.so | Bin 3224 -> 3224 bytes linux-user/aarch64/vdso-le.so | Bin 3224 -> 3224 bytes 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-user/aarch64/Makefile.vdso b/linux-user/aarch64/Makefile= .vdso index 599958116b..c33a679c0f 100644 --- a/linux-user/aarch64/Makefile.vdso +++ b/linux-user/aarch64/Makefile.vdso @@ -5,8 +5,9 @@ VPATH +=3D $(SUBDIR) =20 all: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so =20 -LDFLAGS =3D -nostdlib -shared -Wl,-h,linux-vdso.so.1 -Wl,--build-id=3Dsha1= \ - -Wl,--hash-style=3Dboth -Wl,-T,$(SUBDIR)/vdso.ld +LDFLAGS =3D -nostdlib -shared -Wl,-h,linux-vdso.so.1 \ + -Wl,--build-id=3Dsha1 -Wl,--hash-style=3Dboth \ + -Wl,-z,max-page-size=3D4096 -Wl,-T,$(SUBDIR)/vdso.ld =20 $(SUBDIR)/vdso-be.so: vdso.S vdso.ld $(CC) -o $@ $(LDFLAGS) -mbig-endian $< diff --git a/linux-user/aarch64/vdso-be.so b/linux-user/aarch64/vdso-be.so index 808206ade824b09d786f6cc34f7cddf80b63130e..d43c3b19cdf6588757f2039f230= 8a8bce21aed9c 100755 GIT binary patch delta 50 zcmV-20L}lH8JHQ6tpWfLk+0bl4vUoZ1rE*XtsXbvz!6Y1qE4ha#lpM HaR(;_22&J+ delta 49 zcmV-10M7rI8JHQ6sR952k*nPl^~i=3DKtbcHFtl42<9TUsw2PpfHvz!6Y1qD@cX=3Dik^ HaR(;_8o3m& --=20 2.43.0 From nobody Sat Nov 23 20:03:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1731443998; cv=none; d=zohomail.com; s=zohoarc; b=RYMhK6l6rPimAxlda9KLKKg+4aaUA+v63tP02WzPVmDyOkPTx0FJlxjv90imq4T+x7Zj+ZJTkMaO2Suqb0ZUuvKjGLK9V3pEV3KNU3Y4jJ6zFwx0D54kepVgxLikbMlZXJzQ3f1j1BAktgQi9v4UNGzqFoVcuu3i8MaxLub3M+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731443998; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=yaKvdcW0NY8dMapEj6tw4tU32C5h1WMT1O6sfRI1f24=; b=bxSxY90CKd7gbicVs8RNMf3NOFkTHCI+sJBiN20+oDkGl0OqgrXNfcWoUCaJiHIiaL9looDoMGSfZZ2ucSUtTcSPg6FYSdFpWv1X9qAGafOBa/OOSr/aR70EEtcxTFOEH/fH0x+LMlHsbXAhlwWexZx83DwLB4GrAgDXHRqDgOc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731443998070692.5534258541768; Tue, 12 Nov 2024 12:39:58 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAxea-0001IS-E9; Tue, 12 Nov 2024 15:38:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAxeV-0001HO-8l for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:23 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAxeK-0008T5-8j for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:13 -0500 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2e9b4a4182dso36950a91.0 for ; Tue, 12 Nov 2024 12:38:06 -0800 (PST) Received: from stoup.. (wsip-24-120-228-34.lv.lv.cox.net. [24.120.228.34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3894192sm9860a91.21.2024.11.12.12.38.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 12:38:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731443886; x=1732048686; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yaKvdcW0NY8dMapEj6tw4tU32C5h1WMT1O6sfRI1f24=; b=uABqF/gm1d3oKtz0sIjbvRTww04he3eYgTivUPEI/LBwY2XR7xw6TCM7Q1PldqWilO 47giKxw9I5dfPQS1zj+4PHWBLlS/+snzMgVqRq94M4pNc61C606WyKFh2VBcv3K6kzh/ 6IxO0TSl0uc1HLHFsewtfxjs7bBaf1GQCuELVlh3wHdkm/wV8qojYW+n0GBup1c4w6YB J3IjPDWPLZ2OVnnnzAj4ax0I+G4hdRwacuYaTZrtUXzfi6tZIKNU9WACZt7p6i4vClB7 Hn3XFL3+SRy2cvfKBGnQiodjQoywIU/X2uFseSydYMHWSnnPVePPebOifQ3YyXMERglv M4sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731443886; x=1732048686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yaKvdcW0NY8dMapEj6tw4tU32C5h1WMT1O6sfRI1f24=; b=jDMU9gYNWKfGMi7HFTfVvnmj8r7Pz/WNC8Iulm3VmEcW6kaXgK4hjpgdqwUrSpzY3T hxvPyu7mdeLybU8OWV3lYkgDBWOcUG9gJlhXDtAaDnaic27P4VkRrSRbjwhidZn817Ww D6IvX80JBDzpR9ToyA20wCPMKpyBRm7jXfADLVP8J/eFyihhHSWhdymFbAkudOA2teK2 2bU/wDkkO2KsDP3wnYE/gtMiXN/2dTlMYraZ3g9n0jOoS8EvjBudLzmDDgupdqNJP5vx KGbT9cpjWq3u41nZ2LSoWNXLjQ9fij2O9DTxOSflBZexjwG0dpYlm8zhuIAjMMUtNa9Z Z8Fw== X-Gm-Message-State: AOJu0YzEWA1y5hU3BsZqdDPzShmvVeehFH5fVpEjpgkcBweYgnoRAbVg TqUnR9aqHcmhT+rli3uQWQME0ReOb3rxZ0+zsYMQybO13X8+bYNV5LCo9TsOALDqn8GifPLc/bX x X-Google-Smtp-Source: AGHT+IFVR7FvqKM0XxZbKEtilnOCzvswuLVBNF7Rdy32QhHvuyYpGS1hT7j1xFjdeP1CLd0ZO29gsg== X-Received: by 2002:a17:90a:e7c5:b0:2d8:9fbe:6727 with SMTP id 98e67ed59e1d1-2e9b1ec1443mr27786808a91.4.1731443885653; Tue, 12 Nov 2024 12:38:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 4/6] linux-user/arm: Reduce vdso alignment to 4k Date: Tue, 12 Nov 2024 12:37:55 -0800 Message-ID: <20241112203757.804320-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241112203757.804320-1-richard.henderson@linaro.org> References: <20241112203757.804320-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1731443999415116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/arm/Makefile.vdso | 2 +- linux-user/arm/vdso-be.so | Bin 2648 -> 2648 bytes linux-user/arm/vdso-le.so | Bin 2648 -> 2648 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/arm/Makefile.vdso b/linux-user/arm/Makefile.vdso index 2d098a5748..8a24b0e534 100644 --- a/linux-user/arm/Makefile.vdso +++ b/linux-user/arm/Makefile.vdso @@ -6,7 +6,7 @@ VPATH +=3D $(SUBDIR) all: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so =20 # Adding -use-blx disables unneeded interworking without actually using bl= x. -LDFLAGS =3D -nostdlib -shared -Wl,-use-blx \ +LDFLAGS =3D -nostdlib -shared -Wl,-use-blx -Wl,-z,max-page-size=3D4096 \ -Wl,-h,linux-vdso.so.1 -Wl,--build-id=3Dsha1 \ -Wl,--hash-style=3Dboth -Wl,-T,$(SUBDIR)/vdso.ld =20 diff --git a/linux-user/arm/vdso-be.so b/linux-user/arm/vdso-be.so index 69cafbb956e283e2975bac59a10491c0cbafca57..bed02804a4bd367eb9fd8ca54d0= c980103c02245 100755 GIT binary patch delta 49 zcmV-10M7r|6xbAyaRLAkk#lhrGQ`BrU>NUTo0WUr&~YvSTwestvG{WZ25D?qS41(h HaR%oD3DgvN delta 49 zcmV-10M7r|6xbAyaRLDVk#lhrweyTc_Z*p@&&2@VLR1?$m|vtIvG{WZ23l}Oc}8xt HaR%oD4;B=3D< diff --git a/linux-user/arm/vdso-le.so b/linux-user/arm/vdso-le.so index ad05a1251875ac0c76685e1f9190a7307a8444d1..38d3d51047372391b3125c3f9f6= ea5401f04bba1 100755 GIT binary patch delta 49 zcmV-10M7r|6xbAyaRLwkk#lhr8{q*880U1i=3Dt7z4dQ|b*DDU}VvG{WZ25CxDZDwh+ HaR%oD5d#(3 delta 49 zcmV-10M7r|6xbAyaRLAVk#lhrkUMV7Jk`NO!6O#urC$6IB@6+uvG{WZ26R_8MpaO=3D HaR%oD?$r}} --=20 2.43.0 From nobody Sat Nov 23 20:03:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1731443959; cv=none; d=zohomail.com; s=zohoarc; b=TL6MxqR4xMWHcme8VkU2WX0rbNgzPwVXFx5NYz0USY5Oud0IyL99ReF+EG3L0Xd4Q9Jo/hAAu5tbboNGpmo78CyQ1AkErMgo79xh1MGDL/GFPqBdZmOILX6RgJ8Zvd+ALOxskfZVVY3Sy30X0WA/wm6WzUjMJsiDDbfiO+qKZSw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731443959; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=77EDcqqX9a5GfiHvqq5TNPelFIgzWuyhNUEmQuL3org=; b=iq2NLIHkDNv2TRBGJh6iqYAAjrnPyoiQA/VUBiPL7eeCZpxvK42eH53N371GUmlNyqOB8lBDo497zLJ1wpXm1i9Pgp7DJJ49muVyATJlDihBrG6JJ80Ldaoxr7I/m0dv58qQLjU0/oGqxNoJNPfQk3luy9+X49f7LLX7vPfoD/w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731443958973733.0898748187611; Tue, 12 Nov 2024 12:39:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAxem-0001LC-2G; Tue, 12 Nov 2024 15:38:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAxeY-0001Ha-99 for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:23 -0500 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAxeL-0008T9-CY for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:20 -0500 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-7ea8de14848so3825307a12.2 for ; Tue, 12 Nov 2024 12:38:08 -0800 (PST) Received: from stoup.. (wsip-24-120-228-34.lv.lv.cox.net. [24.120.228.34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3894192sm9860a91.21.2024.11.12.12.38.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 12:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731443887; x=1732048687; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=77EDcqqX9a5GfiHvqq5TNPelFIgzWuyhNUEmQuL3org=; b=sFhFvfhlDdXfau31+BvCaSc8PAT8lw3K2VcSafE8YF8bMhRqhiwajoHyEMo7n3xJq9 iz5X9alsIgpYW5MW/DNo3DQca89oeuJ7QInz51uKzvyBfV7NuezITao7OrTEBtx2WVPT Sh3K0otg1gYIreV/X8Tvy3FSf4p1Ylj3kNa8LUYbGQYwTH6BKxP2MXBbXc7AR35a7JZw fAvQP8yksnUMBVuWjY9EcFofLhmfkx40W4VyoTJScd/oKFQDYkEj4IKqHcyxP2ZYFLU0 Saq24geoKkRcevTmAN78bb01JLUIQdjUa7hmE+b9UvXcvvvmg2MHNMBKFK+wAWHeKZxW IJ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731443887; x=1732048687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=77EDcqqX9a5GfiHvqq5TNPelFIgzWuyhNUEmQuL3org=; b=HU2se/2eagKTcpRYPnoZCZ4c/rpExsZghq4W8Sj3mr2z0DJXmOmWfqnKmga+w5PWUj fc1g0n/KB4Qs6joWYmZX0nAdUEfhZ0aHCEUFFBSWwEQTCB73X/90OECUKZmyZYfzqtqK zLE46Wp+bTRRjr465QMEH+rWnpe5ZGkriILZyzMGMN4A4AeVdl/+PCKsZPM0A2GxuOCK 4lWMYxBFvkrubMQ1OI54ZzaBWoaQnHEB1CB1E2q2RndeiCBkrNySlDG9CRNrmnpJgFXF 3KozrklYnZMTYxm/EalchKMKnR9TsQOqEZ9OTk6LY9zRHsSVD0x0vTNL7BgmnACdAWsb FQBw== X-Gm-Message-State: AOJu0YyRiCB50z5znkYg+4ne/1RZ53dTNDxNgkl4MxgQPp8JiysJsweO kxvDOmhSOT7ZMEQXudjQlRZLYNPf33N0xFYKvSFEpbzAB040gO7wlPNE91l81Mnnh51uXH4zFYM s X-Google-Smtp-Source: AGHT+IHRJsRJkKSnQuPZ+mEvBkBR/WUcdtxWnP3JIaoiLg06i9MoTpOsZeTP2FFkuLQkTfiJfFVj8w== X-Received: by 2002:a17:90b:3b4e:b0:2e2:d879:7cfc with SMTP id 98e67ed59e1d1-2e9f2c9062amr348877a91.21.1731443887247; Tue, 12 Nov 2024 12:38:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 5/6] linux-user/loongarch64: Reduce vdso alignment to 4k Date: Tue, 12 Nov 2024 12:37:56 -0800 Message-ID: <20241112203757.804320-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241112203757.804320-1-richard.henderson@linaro.org> References: <20241112203757.804320-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1731443961635116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/loongarch64/Makefile.vdso | 3 ++- linux-user/loongarch64/vdso.so | Bin 3560 -> 3560 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/loongarch64/Makefile.vdso b/linux-user/loongarch64/= Makefile.vdso index 369de13344..1d760b1e47 100644 --- a/linux-user/loongarch64/Makefile.vdso +++ b/linux-user/loongarch64/Makefile.vdso @@ -8,4 +8,5 @@ all: $(SUBDIR)/vdso.so $(SUBDIR)/vdso.so: vdso.S vdso.ld vdso-asmoffset.h $(CC) -o $@ -nostdlib -shared -fpic -Wl,-h,linux-vdso.so.1 \ -Wl,--build-id=3Dsha1 -Wl,--hash-style=3Dboth \ - -Wl,--no-warn-rwx-segments -Wl,-T,$(SUBDIR)/vdso.ld $< + -Wl,--no-warn-rwx-segments -Wl,-z,max-page-size=3D4096 \ + -Wl,-T,$(SUBDIR)/vdso.ld $< diff --git a/linux-user/loongarch64/vdso.so b/linux-user/loongarch64/vdso.so index bfaa26f2bfe1aaa01d9a349b8b030ef6323e1f8e..7c2de6c50e706164225e82f652d= 4becc04c71ff0 100755 GIT binary patch delta 37 tcmaDM{X%-eN=3DAW+tM-YA3hb&jk8@2 (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1731443972082670.0948197630175; Tue, 12 Nov 2024 12:39:32 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAxec-0001If-Oq; Tue, 12 Nov 2024 15:38:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAxeY-0001Hb-9y for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:23 -0500 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAxeQ-0008TL-9k for qemu-devel@nongnu.org; Tue, 12 Nov 2024 15:38:21 -0500 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7f3e30a43f1so4177870a12.1 for ; Tue, 12 Nov 2024 12:38:09 -0800 (PST) Received: from stoup.. (wsip-24-120-228-34.lv.lv.cox.net. [24.120.228.34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9f3894192sm9860a91.21.2024.11.12.12.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 12:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731443889; x=1732048689; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ytqfxtz/gze+FwFK7EX85c9S/fEjNCvGmfsL22P/YbA=; b=e8zmBcewnXKz2nTlDlJw5ToNxpIMby2rf31oxgdIQptD2p1s15/JjmgPK5C9H1tIth Wkvhnq/OJLbsMCHpoqZiWIOr/Aw0QGvLntnTJKtqJ99cBGU1hpKZuuxGiC7Ile0GOmbb SFJDiZVtOxuu1neiMaQQO5GBRlSeeQO/Fi3wlhiD9cv7lPQ5E4B+pxgtGp/ov5fr9Oyr QU51VmMvj1dqXJkfvG6RzcH421VIWQNT8FVbqzUees/atVE1iGcjQhcj6hWF2DDlxQY5 jXhq0lSdtdecj7tPsz8HWGIYOp/+HYhvrKKHLGkjDuZw1wREMuC6dT55ksAH3d4IftVJ Blrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731443889; x=1732048689; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ytqfxtz/gze+FwFK7EX85c9S/fEjNCvGmfsL22P/YbA=; b=M5vzL94cqPQM4wpvAR5pAG4GunQAIYN23uM5k0J/8mklaQyVbwf8wtdOpNvZvgXh6Z 3F9DWveUN2Rf9ISxqf1OxgJfcGkg34JbyWLfJRqJ5L0re7rKd3ziDBkWKQkMgguz8pEe oAUBc60CkKBMI5+jj13VEHFyMl7no1pBSj55e+VMWK+MzDv+cJn4YRhvn6Y+T4b9VCHa AeOs30bTsMdVIa8t+No5G9RrX9nUwJsUc25Yqxi0qUalegAOKyfiSX9H0ThMWuYH3pdq K06RqSEe//206oDg6CKkMHjPHH/ElRubfJEqwsvh9B1RFJumMqKi2kVsr5zB9nXCnvKC cvnQ== X-Gm-Message-State: AOJu0YyEpgen5DctNxoIMrBfGAK3Au3sIpkpLIAOt/TMQxLTtbtBNY/E 4cfm++sJ49Zh5YDVbwx9Il2Sy+WoBHEXp56uU40cLcM7UAxmnRW5CivJBupKiZtQHB1GlonfFOz m X-Google-Smtp-Source: AGHT+IHyd0s5OgtOnlH14ilGdOWMRh+3wrunmqSCHRD7Jy7gOgyIyJbFnSO8Es1iZerCbagdiXWZJQ== X-Received: by 2002:a17:90b:3b47:b0:2c8:647:1600 with SMTP id 98e67ed59e1d1-2e9b16fc9d0mr23850605a91.9.1731443888602; Tue, 12 Nov 2024 12:38:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 6/6] linux-user/ppc: Reduce vdso alignment to 4k Date: Tue, 12 Nov 2024 12:37:57 -0800 Message-ID: <20241112203757.804320-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241112203757.804320-1-richard.henderson@linaro.org> References: <20241112203757.804320-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1731443973613116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/ppc/Makefile.vdso | 6 ++++-- linux-user/ppc/vdso-32.so | Bin 3020 -> 3020 bytes linux-user/ppc/vdso-64.so | Bin 3896 -> 3896 bytes linux-user/ppc/vdso-64le.so | Bin 3896 -> 3896 bytes 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/linux-user/ppc/Makefile.vdso b/linux-user/ppc/Makefile.vdso index 3ca3c6b83e..e2b8facbb5 100644 --- a/linux-user/ppc/Makefile.vdso +++ b/linux-user/ppc/Makefile.vdso @@ -6,9 +6,11 @@ VPATH +=3D $(SUBDIR) all: $(SUBDIR)/vdso-32.so $(SUBDIR)/vdso-64.so $(SUBDIR)/vdso-64le.so =20 LDFLAGS32 =3D -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-32.ld \ - -Wl,-h,linux-vdso32.so.1 -Wl,--hash-style=3Dboth -Wl,--build-i= d=3Dsha1 + -Wl,-h,linux-vdso32.so.1 -Wl,--hash-style=3Dboth \ + -Wl,--build-id=3Dsha1 -Wl,-z,max-page-size=3D4096 LDFLAGS64 =3D -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-64.ld \ - -Wl,-h,linux-vdso64.so.1 -Wl,--hash-style=3Dboth -Wl,--build-i= d=3Dsha1 + -Wl,-h,linux-vdso64.so.1 -Wl,--hash-style=3Dboth \ + -Wl,--build-id=3Dsha1 -Wl,-z,max-page-size=3D4096 =20 $(SUBDIR)/vdso-32.so: vdso.S vdso-32.ld vdso-asmoffset.h $(CC) -o $@ $(LDFLAGS32) -m32 $< diff --git a/linux-user/ppc/vdso-32.so b/linux-user/ppc/vdso-32.so index b19baafb0d38e15b4a24def5c44a6d684714be45..0dc55e0dddff618b954dbb93933= 5e99956daf64a 100755 GIT binary patch delta 42 zcmV+_0M-A@7t9xsCINtvCrSbU5Rr3n6lq1YQP%3b&XBjV4sl%JXqmbIL$UbO3Tx34 A(f|Me delta 42 xcmX>jenxzP8Y9C*buT6$SzIX6c=3D(tjbAN``v6&a|RP{JtzgDQRW#f-4TmVmR5>WsE diff --git a/linux-user/ppc/vdso-64.so b/linux-user/ppc/vdso-64.so index 913c831b3819fc09912b9b31f7fbe9ee311ae12f..ac1ab2582e4675979ffca3ce90d= ce17df579ab2a 100755 GIT binary patch delta 38 wcmV+>0NMYz9=3DINmtpWfLk*~QFqejR%tq=3DsGFts+qF9Cf{%e>^#vwQ)(4KYR#WB>pF delta 38 wcmV+>0NMYz9=3DINmtpWi6k*~QF<@TF=3DqRS8+wHM`Qf0n_&>m=3DZivwQ)(4PLhrs{jB1 diff --git a/linux-user/ppc/vdso-64le.so b/linux-user/ppc/vdso-64le.so index 258a03b807c4eca23547d978c16d1ad5ebd08bc5..424abb4290b7d3100e9dede2f30= 59483608ba703 100755 GIT binary patch delta 38 wcmV+>0NMYz9=3DINmsR9rHk*mEFj|Vri9^_Z(nV0Nw;)4VN>*aZovwQ)(4Mvj@kpKVy delta 38 wcmV+>0NMYz9=3DINmsR952k*mEF`$9%&`;)~jB!C2C?=3DitIoQ(CfvwQ)(4MbHDMgRZ+ --=20 2.43.0