From patchwork Mon Nov 18 21:08:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 844123 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp838250wrx; Mon, 18 Nov 2024 13:09:41 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUE5WMNWuPHe6jJTAnS5fUei9RtyHELSgV2+NFBU3wlNhz1bxxIa6Zh3jHNEQeHFBJgN8tubg==@linaro.org X-Google-Smtp-Source: AGHT+IFgh5wHh5R8PtyFxy1c+tjGpwcfiOB2WrxrxGg4z9aHlGY33g2lmENsXx1o8CcoBmHUSaXH X-Received: by 2002:a05:620a:4109:b0:7b1:4436:cf12 with SMTP id af79cd13be357-7b3622dfb35mr2355966285a.25.1731964181091; Mon, 18 Nov 2024 13:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731964181; cv=none; d=google.com; s=arc-20240605; b=khkq2Mo2YcgBisoz3RPp9Hi4IAO1hxSx5kf5Yosb+uWLLiQRDBt8y7S5UzJD2dqntN RAHzszDSTOru+pOzgJPyuzUpIXIrk7HK5rrU32HwBrjis2da4CQzUvWhd/kiuaQLOfpN +e6/NhQwfY9iPieqD90gSNzzLAeBOYK08cDjhZHIvYLxY3EXQYWr9dYeHUgb12WtoUKo n0K02k7qDeiUUPzIDv/NaIp6HOejTxUh3Er1MS305CmBSVfn/C8IGidtzsfmjtH40Xh7 CqBXIHRrtxpy5ZNidkKTBmLhKabszVIesZftUd8XKcPpNxRTmh62+9uomyfFW6UFt22i /nuQ== 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=aZdHbHxro4xx0b3xoQl+Fd7ZzmWYURHflDEmNm9zyeCK43y45Q3tEsOhTqcC/gS5aq HLn/3wKd+4JGVKVJfB79lWrYpo/QJMN5YOnQWBH5Nw1TD1ghusNKVlGektUGhstesQpN gWAeRzS18URHiqDa0mBsR3ztyX4ZYiyiz8berICnNogjEhXsVF4QYiYTw/R0M8xQN8OP 9psbTZcfyEbRlD+SQvbCXDBlifK2jIaaNwGcpMNFi3hJkvDVBL9HOOWkgCrkhqZBudDf eUPqUH2nR6cv4uF127eJ7Q+Mf7rcozA02Jnd58x0gq9V2+HYYiMGSaVOxAPCtiSJIOJh riUQ==; 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 af79cd13be357-7b37a84af95si57166885a.176.2024.11.18.13.09.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 13:09:41 -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 1tD8zw-000233-J7; Mon, 18 Nov 2024 16:09:30 -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 1tD8zN-0001uN-Ov; Mon, 18 Nov 2024 16:08:55 -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 1tD8zM-0005OC-7s; Mon, 18 Nov 2024 16:08:53 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 9A9AAA560D; Tue, 19 Nov 2024 00:08:31 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 33E20173626; Tue, 19 Nov 2024 00:08:35 +0300 (MSK) Received: (nullmailer pid 2366115 invoked by uid 1000); Mon, 18 Nov 2024 21:08:34 -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.0.4 64/71] linux-user/arm: Reduce vdso alignment to 4k Date: Tue, 19 Nov 2024 00:08:21 +0300 Message-Id: <20241118210834.2366046-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