From patchwork Tue Nov 12 20:37:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 842730 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3778868wru; Tue, 12 Nov 2024 12:39:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXQbpa794UROuJI4JKCayE0Hp6+qcLjdOPfdZRQPYhp3EOrXaqvLkpdbajVB7WupGWR5ufmyw==@linaro.org X-Google-Smtp-Source: AGHT+IESd2OVt7QCwtLgwCNDI/p5TTkrpsoHTCJbiGj2+Es1g05P5dHVa3YNnE/lXAMKmLEjJGK1 X-Received: by 2002:ac8:6784:0:b0:463:17d2:4b8e with SMTP id d75a77b69052e-46317d24eb4mr122430851cf.55.1731443998289; Tue, 12 Nov 2024 12:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731443998; cv=none; d=google.com; s=arc-20240605; b=GLK1SqiPIZ42g0rnDeFwYtYxhLL5+8Ft4fTCQRsK6FwdBUaQrF6DTsetFtxB/GFcSM Nswo605xVznEDAqxjsQRdG0iwb9a3yITKaaFRG7dEOF4kqx25zyCqjZIpt0KUyPGoTrQ ixAFopF/uBKNusk6Fr5tAJ50hIeVrUnRMPD0Rx14i6nHM07aCJGlHc67ypmFww5OnU65 Pj7S0j04Ufvkrq9G60xKJp8htx63KvPFK78Sw4QNFcpUG2qJqoiCpsX8skAVBXWaxqkO dDr//mBS+7kRtXCEgYZUPUs2TjFryPCY2ODauwOW5x4Ctu+5fRT1Y4Xo7QFeIDmHKxz6 zjdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=u0kRCYJEdfCPc7Ck3L3jOULPW0HIyB/R3/8bipse23E=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=gQLcO8XoviV9UsfB+aXgNleWd3TmIgiBxylgLfeGvSOoK+yURc1RSRU0dtxGFfDqNi UhjljRGeIGpJctY08lwmJQ1k1JLjZJSPJszK3f0Q4OVGNgWEv5PUQ6Ax8DN6DYQe3JdG fvwhAC12ZysO55Amh+oeai4aX7B8ZNGgfSi0cNEMU4/LCO4mEuwC7UFo52s3zVZ4A89b FL+GYpNZmHnyc0EQ4q63dTK5oVU1hXkEM9ezQ8sYPYgwk2C303X8zJXlaUpt9anNxutQ oqXq+i2TlR2hjQvt5mWbPQJX41cVOp8wxzSHK9LKG8WJ9uIC7My0Q2C4Kk7gwlmgjDw6 eSQw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hsZ7sJHe; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-462ff40ed76si157935161cf.113.2024.11.12.12.39.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2024 12:39:58 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hsZ7sJHe; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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, const ImageSource *src, char **pinterp_name) { g_autofree struct elf_phdr *phdr = 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 = NULL; @@ -3263,6 +3264,9 @@ static void load_elf_image(const char *image_name, const ImageSource *src, load_addr = loaddr; + align = pow2ceil(info->alignment); + info->alignment = align; + if (pinterp_name != NULL) { if (ehdr->e_type == ET_EXEC) { /* @@ -3271,8 +3275,6 @@ static void load_elf_image(const char *image_name, const 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, const 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 = pow2ceil(info->alignment); if (align) { load_addr &= -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 = target_mmap(load_addr, (size_t)hiaddr - loaddr + 1, PROT_NONE, + reserve_size = (size_t)hiaddr - loaddr + 1; + align_size = reserve_size; + + if (ehdr->e_type != ET_EXEC && align > qemu_real_host_page_size()) { + align_size += align - 1; + } + + load_addr = target_mmap(load_addr, align_size, PROT_NONE, MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | (ehdr->e_type == ET_EXEC ? MAP_FIXED_NOREPLACE : 0), -1, 0); if (load_addr == -1) { goto exit_mmap; } + + if (align_size != reserve_size) { + abi_ulong align_addr = ROUND_UP(load_addr, align); + abi_ulong align_end = align_addr + reserve_size; + abi_ulong load_end = load_addr + align_size; + + if (align_addr != load_addr) { + target_munmap(load_addr, align_addr - load_addr); + } + if (align_end != load_end) { + target_munmap(align_end, load_end - align_end); + } + load_addr = align_addr; + } + load_bias = load_addr - loaddr; if (elf_is_fdpic(ehdr)) { From patchwork Tue Nov 12 20:37:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 842728 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3778860wru; Tue, 12 Nov 2024 12:39:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUkZXHVpTG6QwLUvKa22qDDLRfX1YdUVQttLLeatSJVXU6meEPaaCgfLTpnKQHTu8GfTQ7ihg==@linaro.org X-Google-Smtp-Source: AGHT+IHTtZfFUjZLsetJG2eAJ62ZOtsKiScJ7uu9dNIiqOX+STH3PlpPlJOOU+/R9E9KeM0Za+of X-Received: by 2002:a05:620a:44d2:b0:7a9:b049:1c3c with SMTP id af79cd13be357-7b331f1962fmr2663092385a.59.1731443997169; Tue, 12 Nov 2024 12:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731443997; cv=none; d=google.com; s=arc-20240605; b=f7uMeWakAg3xeIAUvlmRqgN62UXs+AxWqaQhKQ0WfglRbDwwxgrljwJLTNtkaGrs0b IpBBtd3652OWM7D806jkNNk9mlAnTjEPgAN5WBLliOGiBbTNNihjcE6MRGMVglLrCyqD 2XPqQVwL3FDraHAUVt1g4pILOmUvdgisB/xUiDzabkkLW0vjzDJOLe8+req+omo0xqHe 2YOmKiplrq+A1ggJWll+8G4kHWQtrCIqDjqs/fqZD8hdHeFH/G0l45w0wlcV3pNEnVp0 AFhd3Yc2ePSXS4ciMor0QuHr3PoYQ8JqLvZZsWYomHz3WCAjCcRbBb+HMatFKpy1D5sy J1uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=i9Tx+e50KlhsYgpRqVjdsO/z4tv3m55Kc+AlE2OCoQs=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=STzFBaihzLgl/tqKpwiAIMbvs6zvNOB9fWw4M9byC66c+MSjmhJbHTFSTjruwDFVoM pZw1q+3HAmHZ5cgd5bXXKc7X59uIIbb1wmiRWynBAAmNYhyHXgk4Wlf6QAwQz01ytyGv cTdtMHEpDIKsiYvm2nCbZmonFvq97bb70S+iCqZc3xWl7p2SncC+o4mTy3yaE6Al7aQN zGbEjQkzHviiI4sYvrPSz2jbgs1x/KyhG8+jd7rmz3QBp5mKqLG2ffBKostDdvO1e5sM AdAYmK8F+gLyOd9uvjvdQ/HjjhyXyK3FwTldJ75gJn6JMOtLXhnk5Fs6oeNsR78r4as1 y7fA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s9KSLqLj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b32ac3d7ccsi1490065285a.83.2024.11.12.12.39.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2024 12:39:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s9KSLqLj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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; /* 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, const ImageSource *src, * amount of memory to handle that. Locate the interpreter, if any. */ loaddr = -1, hiaddr = 0; - info->alignment = 0; + align = 0; info->exec_stack = EXSTACK_DEFAULT; for (i = 0; i < ehdr->e_phnum; ++i) { struct elf_phdr *eppnt = phdr + i; @@ -3234,7 +3234,7 @@ static void load_elf_image(const char *image_name, const ImageSource *src, hiaddr = a; } ++info->nsegs; - info->alignment |= eppnt->p_align; + align |= eppnt->p_align; } else if (eppnt->p_type == PT_INTERP && pinterp_name) { g_autofree char *interp_name = NULL; @@ -3264,8 +3264,7 @@ static void load_elf_image(const char *image_name, const ImageSource *src, load_addr = loaddr; - align = pow2ceil(info->alignment); - info->alignment = align; + align = pow2ceil(align); if (pinterp_name != NULL) { if (ehdr->e_type == ET_EXEC) { From patchwork Tue Nov 12 20:37:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 842727 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3778783wru; Tue, 12 Nov 2024 12:39:43 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXZG1kbe4w1R3V8O01o5kISiw2Dcuz3RG5TTm3UrpLub2IbB5TMVGCzxOssRKT3ADG6AJp8mg==@linaro.org X-Google-Smtp-Source: AGHT+IEEjOEAtMB7JIOqH5Yi+iMXs94/aRK5BFV0CHTIAIefd+/f/jYGe5O+zBw4gEQ3cpudXPzY X-Received: by 2002:a05:620a:f10:b0:7a9:8679:993 with SMTP id af79cd13be357-7b331e89e2fmr2331397785a.13.1731443983294; Tue, 12 Nov 2024 12:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731443983; cv=none; d=google.com; s=arc-20240605; b=Gz1XUne5w7RhGz1vS76NyD+ZIQv1mVRTwiyb4/J+6rKp/Q1C5SslDiyMxnds8fyfZE cAcqqXejAlq19+dWUFtU5NIBZCukZ7jSwA9oF0EztRcJ27hreQhHxAHBX3KP25bWcLdw 9nnpE2MRXqnKQ48WdlC4JCEZZXLK9rog4oPDU25Qe4Q0xpbtlKG5bOD02rNSWLgpxhw3 04fnoM3YDPUweBumHcNMIeGMtqBTkyLjeUbOTgIqka7D/0Ci1vn+t4IW1vEAvop1yKPI 9G8TvAaTeS9BybLr+d4u66qOyBYYeyrSYWatGRC8uBgqxVeMVWejtikFRc+mYMp+Pk9S EXMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=83DOC5EhuvVszgMTN5y3DcTwu/SHcyPUnQNhN45Z82Q=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=U7P92sYrrntMa4kcTCuwZm33p3ZNSM/v2ZS5NXDc6hMtR8AePV+DmOe66G6b2f0KRO CqPWv+zLwMQ/zVmh2aMQXF2rR+A4s94bCqgQEf9Jb7Y2ldFS4vgq5Yj5brsELOywjxVb 5JLhj1mkTyqbpl7WG6jyTnGRxrLMaj6PwJbZz/E9Zl9BB4gURb1oa32d3PNp9xi+KGmY 2pMWZTRIAe+ClEvIsK3JdJq/1+wPOLhNWycn+Ux3SPDckxQ5Y1fJy9jSOf8zYbSZIiAc 8lTPH2UoSZcoUFxofDjyHE7WG8ZOyuTzdcm7xpqjGL47syhzvGhPuEJLB1HgnKJhGZLm BQBA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E25HWWBJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b32acf801bsi1392909585a.460.2024.11.12.12.39.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2024 12:39:43 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E25HWWBJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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/vdso-be.so b/linux-user/aarch64/vdso-be.so index 808206ade824b09d786f6cc34f7cddf80b63130e..d43c3b19cdf6588757f2039f2308a8bce21aed9c 100755 GIT binary patch delta 50 zcmV-20L}lH8JHQ6tpWfLk+0bl4vUoZ1rE*XtsXbvz!6Y1qE4ha#lpM HaR(;_22&J+ delta 49 zcmV-10M7rI8JHQ6sR952k*nPl^~i=KtbcHFtl42<9TUsw2PpfHvz!6Y1qD@cX=ik^ HaR(;_8o3m& 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 += $(SUBDIR) all: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so -LDFLAGS = -nostdlib -shared -Wl,-h,linux-vdso.so.1 -Wl,--build-id=sha1 \ - -Wl,--hash-style=both -Wl,-T,$(SUBDIR)/vdso.ld +LDFLAGS = -nostdlib -shared -Wl,-h,linux-vdso.so.1 \ + -Wl,--build-id=sha1 -Wl,--hash-style=both \ + -Wl,-z,max-page-size=4096 -Wl,-T,$(SUBDIR)/vdso.ld $(SUBDIR)/vdso-be.so: vdso.S vdso.ld $(CC) -o $@ $(LDFLAGS) -mbig-endian $< From patchwork Tue Nov 12 20:37:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 842729 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3778866wru; Tue, 12 Nov 2024 12:39:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUTpj26bGH1ysXxJtfEeWUnfGkIhh5sOYR/D4gQeBfY0UGgpymGjFUwB/Y4HTC2Hylal+YgkA==@linaro.org X-Google-Smtp-Source: AGHT+IFScoBdnCuWD9r2qtgSxjZWZ+avP65pFS5KH6FRAMnAVcefczUDCcmypzTCc3tpGvBhBQTw X-Received: by 2002:a05:620a:4012:b0:7a9:a9be:2fc4 with SMTP id af79cd13be357-7b332942c14mr2834832485a.29.1731443997733; Tue, 12 Nov 2024 12:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731443997; cv=none; d=google.com; s=arc-20240605; b=YU6FD/QPn5VVPH53Ppsz8ReEyFjOydACcVgqKh9mWW930QqrqzLSRlgqa5pQiykrRK jpl7ksTZQu8t4FIS82fmvnBdtpIdtVSfrRJ44XjEVWBr6o8Foea0H5fzqCLtlR6dBsEV z2IVR6643jzSu1PF6LcSy4uD1BylQX0GJNExOed5vDmPdTv0VIMGzbStRL2RL1tvdhDO RrZvZ+teUH6L1ka5klzPN7Edfl1DwdCGnBeGBMvrr18D+QUE0NE1KkWNYIwRiCc9aUTW r80iyJ9fBzXlPW2qeglNHp7HuQr4HA8O4Y0Xpv4rcV9IrrFVEtHWrjbgBl9ONJqi3dix Vdyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=yaKvdcW0NY8dMapEj6tw4tU32C5h1WMT1O6sfRI1f24=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=lvUdnTwl5sjsL39sD8gE8hoNK7mYHqNQVAm+BnJgzqruO1hRbtWNcAUqGKi3qVMpX1 2T7CissMho86WAJAUSMa3uJbLU/FI0fKbZeMKKM39xRbXhMegPQwwEBcvPVSoaX6+ezw uZBW9mXA+gtSi1G/di6xcUmKnFkenAiCDd8FnoLDYieg4rxRJv6WyGGSl+tYm+t3MmH0 SEAbmVXj8leaDT+7OsbALX7l+Q7rkBwy+YKnSdEftLMJBvOjIGXAe2fDYh4oHszwl1t6 ZvK9dZfYz9ZG8kF40wU32Ayl0BWy00XwdxauYw4Eys2/Ry6tOqSDZeNvq2MUfRt4Za7w haog==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uABqF/gm"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b32acee844si1404712685a.411.2024.11.12.12.39.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2024 12:39:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uABqF/gm"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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/vdso-be.so b/linux-user/arm/vdso-be.so index 69cafbb956e283e2975bac59a10491c0cbafca57..bed02804a4bd367eb9fd8ca54d0c980103c02245 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=< diff --git a/linux-user/arm/vdso-le.so b/linux-user/arm/vdso-le.so index ad05a1251875ac0c76685e1f9190a7307a8444d1..38d3d51047372391b3125c3f9f6ea5401f04bba1 100755 GIT binary patch delta 49 zcmV-10M7r|6xbAyaRLwkk#lhr8{q*880U1i=t7z4dQ|b*DDU}VvG{WZ25CxDZDwh+ HaR%oD5d#(3 delta 49 zcmV-10M7r|6xbAyaRLAVk#lhrkUMV7Jk`NO!6O#urC$6IB@6+uvG{WZ26R_8MpaO= HaR%oD?$r}} 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 += $(SUBDIR) all: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so # Adding -use-blx disables unneeded interworking without actually using blx. -LDFLAGS = -nostdlib -shared -Wl,-use-blx \ +LDFLAGS = -nostdlib -shared -Wl,-use-blx -Wl,-z,max-page-size=4096 \ -Wl,-h,linux-vdso.so.1 -Wl,--build-id=sha1 \ -Wl,--hash-style=both -Wl,-T,$(SUBDIR)/vdso.ld From patchwork Tue Nov 12 20:37:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 842724 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3778633wru; Tue, 12 Nov 2024 12:39:18 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWBDAeDGUyp5nMGn2FIIVk2KTC9Dvp91tuljUbMEailh5JeVArs8aPKFN7MbvAPqXtHRguXbA==@linaro.org X-Google-Smtp-Source: AGHT+IFQHkYPkSdVLF5+AuevcpL7gr/kI6Wa2vamgPZRQZuyYPfLUYJXyRKqr2q4oYvCG+hlZgzQ X-Received: by 2002:a05:690c:6306:b0:6dd:d5b7:f35d with SMTP id 00721157ae682-6ecb347fa5bmr4522717b3.30.1731443958067; Tue, 12 Nov 2024 12:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731443958; cv=none; d=google.com; s=arc-20240605; b=HR8thH9LsBfoK4ECSLbY1fr/tKBdgy754kF4oclNEeLEw63XkjxyoyfdSDFSSSqc34 hYPhbmuSeja1qIr97BCtp2v5fPO+2jHme8vPQk/ICDdFtb2+j7gimxg7vX4nW5dsXdiH RZpxg9/sMf8vHi2+wWWlYVGV7hY6Zo5h6vFugj/bkPcZ+jKNHtsuEM2H7fe06RoCZcph KUSkUYfjdodEUb02Hw/OdnAyck0WYSXuR0lIxA9SYIwDMv/LdffHqnRPlFdctdXP2Apr uB8awi/FBD3/E/nYk6k0Veq2BefIZbo1tb8pkFfB/wOW1Vh/5L5XTDcsS+5SVOBpgx64 dsTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=77EDcqqX9a5GfiHvqq5TNPelFIgzWuyhNUEmQuL3org=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=QbL6IjoHOQc4jRzSghRJ2LjXDQuE9EFXNtfOmHph2m/AUzI6jgAGrV2y4u37zNDI7W 806LkKEMxF46+97lb3ywkYWF4okAKOm1jc9shu8+Pkv2pX2aBzLYBiL8u8agXbEutJHs eOrrfg7fPAce6tCwj1H0dgYi3qGHVt+J7KHMlfMmo2pbPbTR7L0d+4nnzuwIJHggUcLX yU7CyHWuDmanoszEVKKkUAb1KcjopDPEoiG4YwsEzKKscTbY7u5zF2NLuE0lLfJmSKIQ t9r5r9QlA25Cn2jFbN9Zc2Qfw16eyJXEE/tQ/1CAbq6QYIddcgCc77SaodbRCOdN2tQJ Xfnw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sFhFvfhl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-462ff6aaff9si139284221cf.649.2024.11.12.12.39.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2024 12:39:18 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sFhFvfhl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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/vdso.so b/linux-user/loongarch64/vdso.so index bfaa26f2bfe1aaa01d9a349b8b030ef6323e1f8e..7c2de6c50e706164225e82f652d4becc04c71ff0 100755 GIT binary patch delta 37 tcmaDM{X%-eN=AW+tM-YA3hb&jk8@2 X-Patchwork-Id: 842726 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3778727wru; Tue, 12 Nov 2024 12:39:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXvnRueY3kmbF2UpTzMbnyLGfhIJk+4UCOr3arYwQCj/k9VIj11GMEFOq6N4pQOZpmMGnLx9g==@linaro.org X-Google-Smtp-Source: AGHT+IHbX9duSgEZ2I++zPan33mplZ3o0IpMH1QBx24iTXv7HoAwX9riVEnQhCK1hdpowz+rtbJP X-Received: by 2002:a05:620a:4449:b0:7a9:d0ec:2d9d with SMTP id af79cd13be357-7b331eac340mr2399301285a.15.1731443971755; Tue, 12 Nov 2024 12:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731443971; cv=none; d=google.com; s=arc-20240605; b=FkT6S9UNS1loktALyOAA1h4qv5DYChGKAwJcolPLHEM0fKOcZTYSAKcGwENmJU7rd7 xHbgszqZriwhZnnzevj57t/z7EGtGQQKT7mBpsLLzMwVcbIOdWRQ2y463E7N2UwcGCtQ aEgbOLDG+SB3+JHebkEAzwDmE2BC/4eHliEzVCHzKDSE0ru+ubvA4mv3HRrkbTmgvEUc 4vj94xvzula6T5JZiW08jE51G6bq1ktc3K80mDcLonWh4P7L52JCT3rYrLlaZGxchkoz 2HPKUqpkmRYmkjMhSYXUQoKqqOTFN89LQO72oWTfE/NPULK64ubT24fOr5oyv6UfG6nB 5oSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Ytqfxtz/gze+FwFK7EX85c9S/fEjNCvGmfsL22P/YbA=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=CPdHNRepVrADABOkfyNMKQT1TEMAFex7SNNd8m3Wbufxt9SMF7f8YLssKKJaF4OtIg EisVTpuCclB2x2eCj4FxNsIrj1ZIetYpApfsUnPNJDPLR4Ew8jpdN9ZMlbLRvDIjVPWl dClKwjqCAZ4eZQEbBlT9Ds/ntmYOQrsSPhLY6QyYK9RO2/ZFDZi19Ddf60AjG94ebXNK 2LIcqqLrAZP0l7YB+YwWPIOzU1K1h2oWnm0A6xK3LQHZYLZvpCcYzQ8ng9UxqxG5OrN3 t3gRorcm2HOlz8zJ+51GGDsmWsH4+hNSCT5t2iY3HtnmW9gCSIad6qcY+PXqAFoB+XYf v9/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e8zmBcew; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b32acf7188si1462416885a.434.2024.11.12.12.39.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2024 12:39:31 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e8zmBcew; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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/vdso-32.so b/linux-user/ppc/vdso-32.so index b19baafb0d38e15b4a24def5c44a6d684714be45..0dc55e0dddff618b954dbb939335e99956daf64a 100755 GIT binary patch delta 42 zcmV+_0M-A@7t9xsCINtvCrSbU5Rr3n6lq1YQP%3b&XBjV4sl%JXqmbIL$UbO3Tx34 A(f|Me delta 42 xcmX>jenxzP8Y9C*buT6$SzIX6c=(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..ac1ab2582e4675979ffca3ce90dce17df579ab2a 100755 GIT binary patch delta 38 wcmV+>0NMYz9=INmtpWfLk*~QFqejR%tq=sGFts+qF9Cf{%e>^#vwQ)(4KYR#WB>pF delta 38 wcmV+>0NMYz9=INmtpWi6k*~QF<@TF=qRS8+wHM`Qf0n_&>m=ZivwQ)(4PLhrs{jB1 diff --git a/linux-user/ppc/vdso-64le.so b/linux-user/ppc/vdso-64le.so index 258a03b807c4eca23547d978c16d1ad5ebd08bc5..424abb4290b7d3100e9dede2f3059483608ba703 100755 GIT binary patch delta 38 wcmV+>0NMYz9=INmsR9rHk*mEFj|Vri9^_Z(nV0Nw;)4VN>*aZovwQ)(4Mvj@kpKVy delta 38 wcmV+>0NMYz9=INmsR952k*mEF`$9%&`;)~jB!C2C?=itIoQ(CfvwQ)(4MbHDMgRZ+ 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 += $(SUBDIR) all: $(SUBDIR)/vdso-32.so $(SUBDIR)/vdso-64.so $(SUBDIR)/vdso-64le.so LDFLAGS32 = -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-32.ld \ - -Wl,-h,linux-vdso32.so.1 -Wl,--hash-style=both -Wl,--build-id=sha1 + -Wl,-h,linux-vdso32.so.1 -Wl,--hash-style=both \ + -Wl,--build-id=sha1 -Wl,-z,max-page-size=4096 LDFLAGS64 = -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-64.ld \ - -Wl,-h,linux-vdso64.so.1 -Wl,--hash-style=both -Wl,--build-id=sha1 + -Wl,-h,linux-vdso64.so.1 -Wl,--hash-style=both \ + -Wl,--build-id=sha1 -Wl,-z,max-page-size=4096 $(SUBDIR)/vdso-32.so: vdso.S vdso-32.ld vdso-asmoffset.h $(CC) -o $@ $(LDFLAGS32) -m32 $<