From patchwork Mon Nov 18 19:35:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 844114 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp802959wrx; Mon, 18 Nov 2024 11:38:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVgich3oZl1NAsZrx2uFpKoJj8alZ0DLEmaxhCNKuUEbjk+dvTbVtqUh+QNc0QMbQbypKoUAg==@linaro.org X-Google-Smtp-Source: AGHT+IEb5Fn9fCmc06UihSlpXw3UpgBATj3aSU6jz+yQqGaNnN3M+fRmZ3Wpevr5QYa7s5AocPb+ X-Received: by 2002:a05:6358:170d:b0:1c3:90ff:9721 with SMTP id e5c5f4694b2df-1c6cd12b1cemr562104755d.23.1731958690900; Mon, 18 Nov 2024 11:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731958690; cv=none; d=google.com; s=arc-20240605; b=SX5fkUFADnpkKADjOdcEOYOPzN9DK6j534k1pGm93627tfwlyPAEhDidu6R8ltkWYH DwXwqFftaFOBix/yAzfiTpm/GEXWz4UvpYjwgI4c9ibSTd9drEKHLyAX66NXEJHUE1E+ m8SUzrMGACHbbyDvtECiWSKCnCq21IJjEVG5vsqAxr7I+QdlEiM+GQ7oa7Yk1CwXA96l lB1Ox3KChRsdJuB4gg084rjtDa1N+CzY0/oAl256BtJ4fLIOGxZ538Cku58YB8XOPTGe tTBAWwHV+q8h8CWQQYBHLvPpTeiq8I5iX9cDUq8T0mfRy5GLmEdUZkqBy5QX4m70OOmG 4Nlg== 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=WApDf4zO3hOznuI6BC0B6pp6QIYDiGXsIkGO7G/qJqKvQx4XzwtvnFGDjZKvGoedxR 96/z3yQdNWoZFM3KtoJIdbuKt466et9bKsWdMkXaWA2TlDQvuSuWCq2SrBVW7IYJpKfC tyEnowD5+TZlhx2WB4vOptrgQStupeFLxPVvWIwyAhprhcKkfIdokV0LerFLqeWHtf3v T9jroha/oCPhoLuEsBhE8+OKdzdcpw1k9H03pllrbNooX4yq6F2ew27TnlCSSSUJHaEY X2xT1tZQIr9CNdmQt/A5c97JZgzStp2NrqdiRSUCNlMVN7erno3KlpMUq+Pv12QFx5Uh zOTg==; 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-6d40db97e92si71472816d6.124.2024.11.18.11.38.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 11:38:10 -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 1tD7XC-0006dg-7n; Mon, 18 Nov 2024 14:35:42 -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 1tD7X8-0006aD-J9; Mon, 18 Nov 2024 14:35:38 -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 1tD7X6-0002h9-Vp; Mon, 18 Nov 2024 14:35:38 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 94BE2A54E3; Mon, 18 Nov 2024 22:35:17 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 148CC1735A0; Mon, 18 Nov 2024 22:35:21 +0300 (MSK) Received: (nullmailer pid 2312685 invoked by uid 1000); Mon, 18 Nov 2024 19:35:20 -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-8.2.8 54/61] linux-user/arm: Reduce vdso alignment to 4k Date: Mon, 18 Nov 2024 22:35:09 +0300 Message-Id: <20241118193520.2312620-6-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