From patchwork Sun Dec 22 00:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 852891 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2770964wrq; Sat, 21 Dec 2024 16:19:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXh8nTqJ6DYX1PQs1OPkga4MSmPgyViCEx2LC9mdVFlEZkpZkeA47fSpXb/9RSzXjsJoZvswQ==@linaro.org X-Google-Smtp-Source: AGHT+IH9+kpXGzIEZN6ISIxBAyJh2LG5XE1tNrzN2IBR10CbB6PErKTlq/2G8kC13PXJ47VTWXe6 X-Received: by 2002:a05:622a:13d0:b0:462:bb8d:3673 with SMTP id d75a77b69052e-46a4a978173mr149175151cf.35.1734826784889; Sat, 21 Dec 2024 16:19:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734826784; cv=pass; d=google.com; s=arc-20240605; b=M3WS9qyBo+4nmywNUmkjU5+5N1nu9Sc5cgM/oZCl9zty6KXLnIYmIVMRl7K70Pcglb GPGF+yK4kNgZJ9kMstJXow/DorikRaUjd0U+QgAoVBhhb1x27XoNYzAtpU1dh/FariP3 APEGZPC97EoPukoGVIyPO66aym2JFYGIMeuVX6nxP1hl4zuXUG+5eJFCKPH0vm5DVwIp RbrzG7Q3DwttZopqYWhveuDqEYOajSdfZ7GHQsmR6KQFEzS8fgZa+mK5akGdec1GW8p+ IVMtHfs3JtLA38LE91T/s8fjOss1mTRLvvrnpgcdqaEtlnOZA36AHOVCZ09sDRprR4xD p5nA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=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:dkim-signature:dkim-filter:arc-filter:dmarc-filter :delivered-to:dkim-filter; bh=tfXJXDEL/6XzVblV9QqUVb9uZUaJe0qDhHZJdpXocGs=; fh=uKlFkH9AUukvL1xmvBA9M7Oe4ntiJIR8HCR4+3TPd4w=; b=RbDqDjEn2EJnXa43F6/RbrflFRabr/l5DHXsTsbisk48g5tMXcV1vkgtUdPFXVRh0F wS37Y/gkZfLQMdbF5tdzb7bjPwc8OP3d9AaVdR8Ryr0aS8ir5lpdTsj8Ee3agdrHq3pO 681MXNdPYkHDdN6tf54Ze+bLSs2s/plFsVpRa36qYCtOPh8qtlqW8KRYI9S4zGTWMtUL AV4F1Le8ltKnwSycmI9mCHEN+hdJ8rwb0a7j3Y3GiIxKh0LE6ZplrU8Oe5FCDQai8DMD T4fu3eigUv+HU41xI4PIIbwxW++yhlzA2NXiW28M1O4g3xoczHukDCuQRSFnxfCsiMYx TVQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TjTK0mYr; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-46a3e68089fsi80211531cf.69.2024.12.21.16.19.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:19:44 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TjTK0mYr; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C57D6385841D for ; Sun, 22 Dec 2024 00:19:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C57D6385841D Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=TjTK0mYr X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 994553858432 for ; Sun, 22 Dec 2024 00:05:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 994553858432 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 994553858432 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825924; cv=none; b=K2goJE+B/EV1ODljluceqfSkp6Oehe5zE1vnjeJUiEfvhdHLSJNTfebwRlPWcHYK/GrbALm2bhF1Q6eAr/xIovZG73VpJ5ZyouLWc5VyLp13mFZVTS6/icpuamJRlf5M+X3+5uMlmbnloqYwT6bYZKv4XVV3RU/iuhvOo9X4C70= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825924; c=relaxed/simple; bh=tdVkun3SDMJOGelNYG5FE945sri5iCU8eUT7HYe8OkU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VHF3Wu6DjTJTRiHzD0W313d/VQhD7Suh1uRfdcVae0cXlaSGuNKtKtxc+EEtghG22fKiechljaXO23PimNfG1GAiz2eENMkoADJJ5au8IardgKlDGfrBMPmm4JAtXcrI0l1UOvhGiPqwYT/O3bWvs7gR7+lNxIFvIGijaDjOY9E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 994553858432 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2161eb95317so29624965ad.1 for ; Sat, 21 Dec 2024 16:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734825921; x=1735430721; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tfXJXDEL/6XzVblV9QqUVb9uZUaJe0qDhHZJdpXocGs=; b=TjTK0mYrjuXxPIfmvC1K8PzONB0oLnXWsAUwdcIrjK3hCHuPNYiD1TM+ah2TY/lQOK CdC2XwHUPgeisSBF+M2/6+Z1DtKudwJxVf9tFSf2RroTFcFdrYtDup6KE/pil9JoMn21 NaHJUrySvGgiIuwKXzanAWdUrbP+pMMSNyq99kugo7a9mD+Bh5G7NnFp7IigycamnAFF r/sC3lzpg13T/lOZjfbJOxCPpZgZolRS4VTnFXBQ86C98aBEbopku02XFQcsN9bNQ3Z+ 4j660lwlNH4zYMJBQwck9LPMm1P7KDuf9v6sc+rXHUjDvDHXQqYByb4qdPq52H4dkRaq oluA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734825921; x=1735430721; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tfXJXDEL/6XzVblV9QqUVb9uZUaJe0qDhHZJdpXocGs=; b=w+hK77IsJYjguan7s5NKNDVvbtvGDireJgXNwKJDd0RKUJ4a5kA1iVwx4WdX6Lg/A6 jiY2DR7oFAInjSbAjYyKaeuauJQ51VorS77furbpy545HQtdpA3kAWJcAZVzFRE116eP s0sdlrWEa47wMeDkdzJK2WjZppwuFYQC6EYrDqiDsisNGoFPAsS1hWvXfKV2FdvxHZHW eAD3yi3Aebf3evc0t3tcOvXSq5C/dU2s2lF6esohHpRZyzPgcQbP011/+23pVkD8sEAJ zwro7mpxZJt7xl2G0Rb9BBocRtP+RHrVdCWPAf0YP+y01S9IdS93Ja8F6mE+INY5wiXP K4sQ== X-Gm-Message-State: AOJu0Yz7TQkU1RUdbTobnnWWq+qu1GyvzISLGfPZDNevcna5UVZRwCwk 02t3UqXCy1B+5ikr7FxI1cWdYZpHtkc0zg9GudslbJDXziTnn00H X-Gm-Gg: ASbGncv/wCuVbUtziwRLFJka8RzfvC8Q1Q3ItRIhbIn9st6G2UKlemRC56lbODrmHui Y8FWlydEcw8vncnAx44btf0A9IONa/nbRKxVGUnhMz56pDzyNHG1Mt2EAUVOAXE+orAVWpzUWSP k7A7WaTm0vmKLgaJ9ywnVV/R+Hbze4FY6weBSjQ/UQqFVePgmmgWn4joZZ7QE9VXy4UFlgz9TWr 2kYMBs0X1TNKJdPiJSLwaKI7B4q2sK/9ljT4rgQzrZiKJpz+cU6HIp0DSumDAftdvotvOA= X-Received: by 2002:a17:902:d483:b0:215:b1a3:4701 with SMTP id d9443c01a7336-219e6e9e9a6mr111869015ad.13.1734825921150; Sat, 21 Dec 2024 16:05:21 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9d9775sm48926135ad.148.2024.12.21.16.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:05:20 -0800 (PST) Received: from gnu-tgl-3.lan (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 0E48FC0834; Sun, 22 Dec 2024 08:05:15 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org, Adhemerval Zanella Subject: [PATCH 20/39] x86: Use inhibit_stack_protector on tst-ifunc-isa.h Date: Sun, 22 Dec 2024 08:04:43 +0800 Message-ID: <20241222000509.2205895-21-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241222000509.2205895-1-hjl.tools@gmail.com> References: <20241222000509.2205895-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org From: Adhemerval Zanella Co-Authored-By: H.J. Lu Reviewed-by: Sam James --- sysdeps/x86/tst-ifunc-isa.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/tst-ifunc-isa.h b/sysdeps/x86/tst-ifunc-isa.h index dc79d260ca..c9451ad874 100644 --- a/sysdeps/x86/tst-ifunc-isa.h +++ b/sysdeps/x86/tst-ifunc-isa.h @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see . */ +#include #include enum isa @@ -29,7 +30,7 @@ enum isa }; enum isa -__attribute__ ((__optimize__ ("-fno-stack-protector"))) +test_inhibit_stack_protector get_isa (void) { if (CPU_FEATURE_ACTIVE (AVX512F)) @@ -84,7 +85,7 @@ isa_none (void) int foo (void) __attribute__ ((ifunc ("foo_ifunc"))); void * -__attribute__ ((__optimize__ ("-fno-stack-protector"))) +test_inhibit_stack_protector foo_ifunc (void) { switch (get_isa ())