From patchwork Tue Nov 19 06:04:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 844264 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp1005119wrx; Mon, 18 Nov 2024 22:07:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXk/p7faijGSGubIX1zU8cbT+E+1zqlf6FnJwExe3TPlqG6MXWpD4BMj8EVnZXHzCwnNVdWaw==@linaro.org X-Google-Smtp-Source: AGHT+IH27oQ7MrUOXEpY6w+YE7ykJ2tkOeokI/N3WlXOKyCBND315qJc2bXC0zaaqfmJuySWWLuY X-Received: by 2002:a05:690c:e18:b0:6ea:8c14:7bfc with SMTP id 00721157ae682-6ee55cbbedamr127014617b3.34.1731996443185; Mon, 18 Nov 2024 22:07:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731996443; cv=none; d=google.com; s=arc-20240605; b=NPtdLj8EN5PDcQrrhG7kpYqems8n3wB6yeSjIcI1UPieCdDEU/ehRg+//gebyGVbRL Bm3HGhxvKKEDwhptVwZJ/5FcwUqQe+kGyeZ9uev1iOp/OwTQ0WW0R04SO2/nJd8VClrH nEyAXKmnzyuNWKZP6t7aaaGjV6re4gHoIsPH/lApdzQU1lNt2ejWbBJHOcfxTb4YXh1g 0ZbrtC6Xz5wfNcVs1+HnurfyFqxF6yokE7RBL5L9ZzPU6c3UWunC/KE8XzeUNdapt1Iz Ru7oS4grjqteX1A5BaNz8SVrHoSnHkbKGcOtHRYpx46UqL9YuvOrwoanNn8D11ZkSFxV S/Ig== 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:cc:to :from; bh=UAF4xrnSiDr+6+n8Ih/c+HXHjjKo4DYLm/IpHVBiYaE=; fh=K4abbxCgZAPvqzOXA+PZ7RIZh+KufMVJze7rXLOwES0=; b=dMkpXMvEeHJeydk1jX29WlIekeur3PG72DeTA6onVhLaYWWl1EZRS86JD5FmTIDVWW 868v9xVv1XmV4DHpqI+xby+Ss5XZNVxBpkA+we6R5ZiIDSX2G+sLduH+O100ZStPG6kO xoQJ4Idd6jNU6PC9I2/TbUPQWt/KfrLuoyhhzuCJhoEGLDWEkIhBTKoruNDAXINKy9Zl oaSUwwC0/MT5CsIMGuM8SIjkthuxJ1Xm4RIk+FizC2vrVIoGuQ8YjVs4ccz0XRKF3dmP ovEIkKwsq8gTdsjfqO80TqDZQbbzFTfE2GHg3qiRieH2KD2YCp101LKa84tft5PhlcUO KIZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d40db97a66si81770196d6.117.2024.11.18.22.07.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 22:07:23 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDHM2-0001AK-Cn; Tue, 19 Nov 2024 01:04:50 -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 1tDHLw-00015s-9y; Tue, 19 Nov 2024 01:04:44 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDHLu-0004f3-ON; Tue, 19 Nov 2024 01:04:44 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id EB92FA6267; Tue, 19 Nov 2024 09:04:14 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 1FA221738DC; Tue, 19 Nov 2024 09:04:19 +0300 (MSK) Received: (nullmailer pid 2368944 invoked by uid 1000); Tue, 19 Nov 2024 06:04:18 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Michael Tokarev Subject: [Stable-9.1.2 64/72] linux-user/arm: Reduce vdso alignment to 4k Date: Tue, 19 Nov 2024 09:04:05 +0300 Message-Id: <20241119060418.2368866-7-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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 From: Richard Henderson Reduce vdso alignment to minimum page size. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson (cherry picked from commit f7150b2151398c9274686d06c2c1e24618aa4cd6) Signed-off-by: Michael Tokarev diff --git a/linux-user/arm/vdso-be.so b/linux-user/arm/vdso-be.so index 69cafbb956..bed02804a4 100755 Binary files a/linux-user/arm/vdso-be.so and b/linux-user/arm/vdso-be.so differ diff --git a/linux-user/arm/vdso-le.so b/linux-user/arm/vdso-le.so index ad05a12518..38d3d51047 100755 Binary files a/linux-user/arm/vdso-le.so and b/linux-user/arm/vdso-le.so differ 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