From patchwork Thu Jan 18 16:02:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1888133 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DFri8f1x; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TG6wX3LD7z1yPV for ; Fri, 19 Jan 2024 03:03:08 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 752D23858004 for ; Thu, 18 Jan 2024 16:03:06 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id CA9E83858D37 for ; Thu, 18 Jan 2024 16:02:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA9E83858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA9E83858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593765; cv=none; b=AdSezDvh6iuDCzKVfRm2LcSd/rqu1Q8fPzdwxO4VQ8admK6SkPpfDxt0Femjfle34uGy3Oke4KKqlwWAgMD3aSP32xSY9lkntaJlzImadex+vUVB+HXcyGV2pOP724IRaGdL9QYYq5C9wAiUKgpn4BrUrOEP9XCI8NwXqmaCvXI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593765; c=relaxed/simple; bh=9VSwQS187+koXzEnX2DjNhPqamXjpIlj3vazkIe5lSI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=FfBnFgPmct71UtcgH6RVY9+hNwItDgyJ+hdO0bPzpMfkin6eQm5utke95xUdNchNUq/cadMvJR3+nnLqCIb7URHFoX90g7AKYP28DfgabBl8KNmPr9roGauGkDaTj4lO7NZtJHPjacP/sX9VMSspah6Xgl8iCbThyD2JnQjk/zc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6db599d5cb8so3960143b3a.0 for ; Thu, 18 Jan 2024 08:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705593753; x=1706198553; darn=sourceware.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=BucMoeY2j77ot6GKx/7CnVdGiVxq6F2GC+8Big4fxzc=; b=DFri8f1xJAOENUiluulGxD+Yf5DtCF4k8Vd+QeJWcU43lLA2wnUvqGzintJv2HmFbh EOAo3Jm3BLn8nVBZMJ1U3CzdCrqLIdduo7dMBa59CxKQXHnu75s64Jr4TI+wSRKNkq9o sFsoSG+xru+zbF+//YhWQRtORCLv9GckuWC76Agb0zEkEj05mzo2YLG/NTs/eTK5u0lW 4eBOa8q+9jm4pC6cgZmNkwwf4StBCsLCSDXPNJNqcYhfCbXDsNP7aNrTPZLv09EuMitv Q2jhY0tzsSbFzRGdpi33LAzCW7I1h75Ju0XzMaXofOruFCed9Mo+1sfv8kSIPeoqTu4m EVHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705593753; x=1706198553; 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=BucMoeY2j77ot6GKx/7CnVdGiVxq6F2GC+8Big4fxzc=; b=esh/GwJWhQn7z9PGJeV1wl5u67Q1H6DR+rKmHdvu81ONeMO5CeJ25EeqHKsKXhTM0n RFatO09NkoPgmkCm9lGAKHd+PVQsWMYFq/XzOIpQe/P39CCvNEwLtZbaVztryW5qCJCd R8/oCsNAH8RjcoHrsXV8MdS1wAzYTFwmtYMzKHgtUoRAcFiTF0+ke9y8QOyJ4eLzC+0u GLjMWekMx8tZzgSEcJvtQC44v/mA2HgMyVxSlFH7v0CXFJhZH4kbLmGlpG/UfPRpvBpR 1vXkDTbu67cvVN0NGiyY1JiWGLSfTR7kaON6Ud1wpCF3g/xB0xvQvJUZ9Su8AZF17o7h 5ISQ== X-Gm-Message-State: AOJu0YxNu5zlRT6nlLYfdoAL1+8ioBXymse2rpASyKNzpTw3wlKrm+j/ RHv5Jb5sBKHfQ4qdqLzJf2splOitTXD06jCOXbXiVA1WiM6uetUoDPhkj8H2vmk1RN8Uo7+4/lb 2 X-Google-Smtp-Source: AGHT+IHxFTGh8di2M20EU+eqY3eL1L88IrnW7w0J8oQNstH7/YzwGLzdxcZA3M5bYzfACSJFcafyEw== X-Received: by 2002:a05:6a00:10c1:b0:6d3:a9:51a8 with SMTP id d1-20020a056a0010c100b006d300a951a8mr1105397pfu.59.1705593753435; Thu, 18 Jan 2024 08:02:33 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2787:5326:ea15:1a78:7483]) by smtp.gmail.com with ESMTPSA id h20-20020a056a00231400b006dacfab07b6sm3463559pfh.121.2024.01.18.08.02.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:32 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/4] Use --disable-default-pie for sparc in build-many-glibcs.py Date: Thu, 18 Jan 2024 13:02:25 -0300 Message-Id: <20240118160228.741832-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118160228.741832-1-adhemerval.zanella@linaro.org> References: <20240118160228.741832-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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+incoming=patchwork.ozlabs.org@sourceware.org The staticcally built binaries fails without this option [1]. Checked on sparc64-linux-gnu and sparcv9-linux-gnu. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=29575 --- scripts/build-many-glibcs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 9cdf3e682f..1967615df7 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -436,18 +436,20 @@ class Context(object): gcc_cfg=['--without-fp']) self.add_config(arch='sparc64', os_name='linux-gnu', - glibcs=[{}, - {'arch': 'sparcv9', + glibcs=[{'cfg' : ['--disable-default-pie']}, + {'cfg' : ['--disable-default-pie'], + 'arch': 'sparcv9', 'ccopts': '-m32 -mlong-double-128 -mcpu=v9'}], extra_glibcs=[{'variant': 'leon3', + 'cfg' : ['--disable-default-pie'], 'arch' : 'sparcv8', 'ccopts' : '-m32 -mlong-double-128 -mcpu=leon3'}, {'variant': 'disable-multi-arch', - 'cfg': ['--disable-multi-arch']}, + 'cfg': ['--disable-multi-arch', '--disable-default-pie']}, {'variant': 'disable-multi-arch', 'arch': 'sparcv9', 'ccopts': '-m32 -mlong-double-128 -mcpu=v9', - 'cfg': ['--disable-multi-arch']}]) + 'cfg': ['--disable-multi-arch', '--disable-default-pie']}]) self.add_config(arch='x86_64', os_name='linux-gnu', gcc_cfg=['--with-multilib-list=m64,m32,mx32'], From patchwork Thu Jan 18 16:02:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1888135 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=b1lhIVHg; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TG6wf3jF9z1yPV for ; Fri, 19 Jan 2024 03:03:14 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D7553857C53 for ; Thu, 18 Jan 2024 16:03:12 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id B15DB3858CDB for ; Thu, 18 Jan 2024 16:02:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B15DB3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B15DB3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::434 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593769; cv=none; b=BZnX0zLAW9CbkRzmHElD5ZqguqLTWacXB0psxzq02RfchDD7yTqFU9LZvMDKpfU50crAomddwxuWKteiksECIStuVLR5obG/KZE+mAzmo2eOAUyKDHAUecC6+IxMkaj3kwHu0xCo5J0axKKWIC7AISCngWGjnnkIpBpnJYwX9BU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593769; c=relaxed/simple; bh=7haO9t1WvuGY18sARdp2c4WwecrqI9OUJOWFxJXPmyQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vztebp1HsTN0vWAmL4Jtx+iQC2AnNV0FZKuGZgE2TnAk+sJKYd/GevP1BD1KCpzahvQOCGoS2pDjdbqwn1D7MguEQvEhYmMvdCbyJ8a7oK+P8lZMzRhw9rcdPUhqbRBchrw/jf97kmGlUo81E2T6ZVagXvzc/2KeOA0s+ZaNAuU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6d9a79a1ad4so6952731b3a.2 for ; Thu, 18 Jan 2024 08:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705593755; x=1706198555; darn=sourceware.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=ViXxLsmdylUppPP1Vjx3sYq2OlSI6bJq1V5Hnpo85GE=; b=b1lhIVHg3OcoN46CvXHb4t+VXkrukUrTwnmX+ZgBupmX/iOC3Cz607qa4zZmbZ2vg5 iDz/6eaNYmphCEZGE3SRx+15Xr8qyKWzYO3AGE1nIpedH/qYsPDc5VjFi46chhzU9D+C Essg3iK2bPO7y+8ydYaTcXU7fs9wFmuE71M03OUnNyJxhT8P3qgvZKGKTh9NCf4CP2N3 8atkSoJG4MWP5iph1qfaMlWwuLh6u48W6m6L9mbIzjYBSJ0kMN3OPH+6OuppOlhRptlE HeWaOopifa/Mc2xIbHz3IK1BrmMjJQxUsD4IijkWmH/1K50hAGiP4lI5XHd4U4CL/8dz sk2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705593755; x=1706198555; 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=ViXxLsmdylUppPP1Vjx3sYq2OlSI6bJq1V5Hnpo85GE=; b=ky2qHVdV0UDgW6WASBhOlUKEtdLZ6le2D5ljU1rDtrr9KDlOIS4GvU267Ucq21NhcP eSyvOtpKVKuE43lB4TdLuOShjofyZRawDhzbPR9BEyek7UGkG2DX5h6TAdJwJa52cDQ9 AjN8O+FSaX+NZgiZicWssfGDG/dEmLY+KEBZkLc1yy1FseFOlZyBbhQghFoxFHDuvsVK 9WqPswmSLmP2zDNTTp36MSGXSL6nGQsszeyqOE4iNoaKJ4mJLDqzoRj3rQnGjK1qfBJc AE293DnUTESgfTxcD3leeDIWb8hi7m0OZpxcdciD11iBAbz3vE9wl7WtsHs+dOgDipdz Gl2Q== X-Gm-Message-State: AOJu0YyRzIYuihQ3GU4Pgfuv5qsWsIbO86if6pkJgFrsAHGgqBcC3YuU SzSE+bmuSYtOrj4R8Pkv6vRbBBoCWD99WMpNxXPXpbtDo6lo3MTvU59HdIaobV+azmJydRC+YkE n X-Google-Smtp-Source: AGHT+IHlzXa9pm/w3WdVyZLhBqjlw1F7EGVkDX2BOklwi/xKm3euyLwxHZpQMMfjPn+yl4hPhBBSCg== X-Received: by 2002:a62:6105:0:b0:6db:cce:13be with SMTP id v5-20020a626105000000b006db0cce13bemr838557pfb.38.1705593754994; Thu, 18 Jan 2024 08:02:34 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2787:5326:ea15:1a78:7483]) by smtp.gmail.com with ESMTPSA id h20-20020a056a00231400b006dacfab07b6sm3463559pfh.121.2024.01.18.08.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:34 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 2/4] sparc: Remove 64 bit check on sparc32 wordsize (BZ 27574) Date: Thu, 18 Jan 2024 13:02:26 -0300 Message-Id: <20240118160228.741832-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118160228.741832-1-adhemerval.zanella@linaro.org> References: <20240118160228.741832-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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+incoming=patchwork.ozlabs.org@sourceware.org The sparc32 is always 32 bits. Checked on sparcv9-linux-gnu. --- sysdeps/sparc/sparc32/bits/wordsize.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sysdeps/sparc/sparc32/bits/wordsize.h b/sysdeps/sparc/sparc32/bits/wordsize.h index 2f66f10d72..4bbd2e63b4 100644 --- a/sysdeps/sparc/sparc32/bits/wordsize.h +++ b/sysdeps/sparc/sparc32/bits/wordsize.h @@ -1,11 +1,6 @@ /* Determine the wordsize from the preprocessor defines. */ -#if defined __arch64__ || defined __sparcv9 -# define __WORDSIZE 64 -# define __WORDSIZE_TIME64_COMPAT32 1 -#else -# define __WORDSIZE 32 -# define __WORDSIZE_TIME64_COMPAT32 0 -# define __WORDSIZE32_SIZE_ULONG 0 -# define __WORDSIZE32_PTRDIFF_LONG 0 -#endif +#define __WORDSIZE 32 +#define __WORDSIZE_TIME64_COMPAT32 0 +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 From patchwork Thu Jan 18 16:02:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1888132 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=CQfWxhPl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TG6wT3wx2z1yPV for ; Fri, 19 Jan 2024 03:03:05 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8BB2238582A2 for ; Thu, 18 Jan 2024 16:03:03 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id BF2E23858C56 for ; Thu, 18 Jan 2024 16:02:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BF2E23858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BF2E23858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::431 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593762; cv=none; b=qEFWhtKYs4thC3tp9RbZI7pxcTaCt3Y2kJM9ZJ5qhPbTfxuqJ15lNWBiTbnfqllt6Vwi1HoKHcZh2cuC3YphCA+sjIZB20+BWrx3dYBZlLgfrueC6jZkbYFb9onjvcqkoAA3qeOO3aJFI7MFTBFQ6Y6eGOTC5voVISjZqE5hsIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593762; c=relaxed/simple; bh=NTpAOEIk42fdpJ95z4IWFi98a+k6q5zikDrTBQkTTmA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=KbjRfoIK5WVfiR5W0kKEWV42HXNAfNUU/orS+HNBcih1UtHrVdSYw9WdDeTWVWdGijth8U2t+6Hkt+iXFYkzDSMocete8HnPc64JuPrWyAlM5Nty7kzkLdlbOyuzFLYoZqMJ9hQPejFczhCtGwuc8q3rLdt+UDt9IGtUfgMfsKs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6d9af1f52bcso6673210b3a.3 for ; Thu, 18 Jan 2024 08:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705593756; x=1706198556; darn=sourceware.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=lJa1zwgJRTaN7OlOrvsitil+VhAt3izGGGlycII8Ti8=; b=CQfWxhPlAGCFVwBsp3uh7MaeBy4WQ3J0930OIHQ2t2s6b33qmdrrJD7BWSJzRKmSdx d729lVjIfQwBbZfSEz/sueuNsylCdTAZDkNeo9QmSn9HOn+lLd+JA2naFAC6cdBTXOko 31ogfMoQ2axqObG7vll98YICFPrf6v04DuJGY3vl7eGglsnwNJ75Om+UNrsIqs3q01la 1J9fvHL15S2MS3/DhzAAFkNgPifC6UJjTGfH7kdZsxiBpM6bRYi5UWx3rP7931X7jBfZ WLUA9awF5ItP7nyl86xazbrPUUCoRxBRBy7iNpizj7f08rsq6azag8k4fJUkRb5A8vQn UI8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705593756; x=1706198556; 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=lJa1zwgJRTaN7OlOrvsitil+VhAt3izGGGlycII8Ti8=; b=DSRmPG+yUfT5gYaqlvgN5/Th+WXZzDgpKpCelwQ0td+5IMuA3/7pVZAHY4blYqKK5g gvRuQ/vDIeQY6dT9lLNhScw5vzTd0JTcIZDlk9p6HIxC9VL7K4sK3s/EcewkItJABc73 ATTtIWa5EmiC75OH8CRz+8F/OIl93B0Z7SI6p8AE1lX1iYb0/twnEkhniCcG/L6KlseF uxZuQCuIN/08jkFENmdKNyCCPjXL/OGUHytwmRUwXqlUbhO0O58jKHa4Gui8DJ0RnY9d npUY7+NsTiheFG7ex+x1qQW0WotzqAoWjfmXZmohsGCc2xqhkaIvS6Ok8bZD8u/2PBbq Shlg== X-Gm-Message-State: AOJu0YzbZ5dBK4WGx0BfrkyewgyMtdLdUCs2zJj/eWUaD9zx9433E8Iq rL2ojo1GG2RSr0IkV/OUPGxCUCZnNl7V2dj7KJZrTPlwtXznZsRRPYiXRmkykcUWQv9VduDP9ms s X-Google-Smtp-Source: AGHT+IGBBS3fyX1IDDdtpd+ZNPcAM0531GuhzQsRNuXujiWxiSj9petzUnb9gTOfgCpVgQMQPMSOhw== X-Received: by 2002:a05:6a21:3183:b0:19a:5234:3f9f with SMTP id za3-20020a056a21318300b0019a52343f9fmr1110790pzb.0.1705593756542; Thu, 18 Jan 2024 08:02:36 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2787:5326:ea15:1a78:7483]) by smtp.gmail.com with ESMTPSA id h20-20020a056a00231400b006dacfab07b6sm3463559pfh.121.2024.01.18.08.02.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:35 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 3/4] sparc64: Remove unwind information from signal return stubs [BZ#31244] Date: Thu, 18 Jan 2024 13:02:27 -0300 Message-Id: <20240118160228.741832-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118160228.741832-1-adhemerval.zanella@linaro.org> References: <20240118160228.741832-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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+incoming=patchwork.ozlabs.org@sourceware.org Similar to sparc32 fix, remove the unwind information on the signal return stubs. This fixes the regressions: FAIL: nptl/tst-cancel24-static FAIL: nptl/tst-cond8-static FAIL: nptl/tst-mutex8-static FAIL: nptl/tst-mutexpi8-static FAIL: nptl/tst-mutexpi9 On sparc64-linux-gnu. --- sysdeps/unix/sysv/linux/sparc/sparc64/sigreturn_stub.S | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigreturn_stub.S b/sysdeps/unix/sysv/linux/sparc/sparc64/sigreturn_stub.S index 12af289375..8c9fbbf22e 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigreturn_stub.S +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigreturn_stub.S @@ -23,7 +23,10 @@ [1] https://lkml.org/lkml/2016/5/27/465 */ -ENTRY (__rt_sigreturn_stub) + nop + nop + +ENTRY_NOCFI (__rt_sigreturn_stub) mov __NR_rt_sigreturn, %g1 ta 0x6d -END (__rt_sigreturn_stub) +END_NOCFI (__rt_sigreturn_stub) From patchwork Thu Jan 18 16:02:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1888137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=FvQq/R+g; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TG6xL33Tnz1yPV for ; Fri, 19 Jan 2024 03:03:50 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5E86B385800C for ; Thu, 18 Jan 2024 16:03:48 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 47E123858C2D for ; Thu, 18 Jan 2024 16:02:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47E123858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 47E123858C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593765; cv=none; b=uBTl6mCqj+bLxwnu1CNTIB/yZFGKExmz8nvipLlVsmxahfsjitzeiyH5rTwDGla2yMZt6mEMoON0jJET58XnnAA0zqFR1lr5Gt3DgfGlVK4rIQAfNEMaTXCw+65a14nVd4OlvqoTQ/qJqDEUy5RmyJWlA7bRhaN2DbW4eejMuV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593765; c=relaxed/simple; bh=RSSFNJkAh/cCuupPeUQ33vcUWch6jBYeXQ8nd5u9bWk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=jBDHXK4fGQaYuowBAnS7U5NMkN9XJelLT/4hMqqS/Hqo6DSuvAGUzz2Z8dg1aBViRm/WQZHP7xP2bfBg6eyfRonC3kVAcUljbf3TjfVEVBGVM931DYrIOVtyZ3mXZRykMNjvgYtPBGyXsELJ4OA7lCZ94z8CmXEZLYf3PNK+Lh0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6da9c834646so11021816b3a.3 for ; Thu, 18 Jan 2024 08:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705593759; x=1706198559; darn=sourceware.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=OjMc5pfKDy14cEjMBGMddYbUXullRlhqFajP6iThMvw=; b=FvQq/R+gs2HjOMnB30j0y57zwedHMAj7tQxNUB9MHHskvTFYo+mz+2D/kU4y+L2l64 kkzCGsE0TpdoEcKXB7k0It+daUmSaVE/OD0Sgvf1Y+h5lWj6CGyPIwbMUIwYWbb/A1oV 2EQxVn8EyDk8e0oInlj/FqftKYKp4qAZGhxoPu7zvnB+ezPi+JQxe5sHpOQZSWfSRPdy XhjqCeZnCueZpvHZb+HpMipOwg4yuZd2acmHhUNreBgpjgZeDHVfC0lps/p0s9y0wxNI xcFKPcwl3a4BHQltElyTUpAfs7hRq1ED+q80W3FHqkhG5ZFpGQBqZtEf4/LanPTBrcsd 5MnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705593759; x=1706198559; 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=OjMc5pfKDy14cEjMBGMddYbUXullRlhqFajP6iThMvw=; b=LA5+TfzvrfDvCy6s2d1tEgUVXfh7ZKFp1VzP+Tpk+wdiHjDTUPDnV2pco09bBJGo92 gz98apQ3pE4LjGzWCCZxEWX26nL58hhQTTQO5r7z78eyVSh+08LWeWZq8GXrcnrjX3GG diQ+A16plFhC55t54gujjAcGtTXIagcBVNBBlx77OM8nYa1tkW9STyQrRdX+nIljEF4A pdpvR381HmOxgRmMMehAZxBbBn8kA5H1Aa96d1uDwLW2SozrgHaR7jm7UqKCpUNr7Sp2 dN96IIahagUrotfINgzHYScZkVROKF4HdaZVcD235ezQ+qH5N//P4VEGE2dDMNqLahKU 4P2w== X-Gm-Message-State: AOJu0YyktjLlvZfbIMNFCSeN9FYn128axdnLaSmSmWaOHDJuy8hW3ufA qWebrpONnZBYH3WiQt6LA+tn9HKCS2e5IjE2hUIZWDsQFyau8FGnnKJB26MsX2NjWDv8Ravb/cX g X-Google-Smtp-Source: AGHT+IHfFv53RI4cIKWQjzv8X0ucf53s7K6aNUHy13lcaaAFyce5maCZLEad62CECK7FssCixZsGkQ== X-Received: by 2002:a05:6a20:b296:b0:199:e05b:8bbc with SMTP id ei22-20020a056a20b29600b00199e05b8bbcmr879229pzb.77.1705593758112; Thu, 18 Jan 2024 08:02:38 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2787:5326:ea15:1a78:7483]) by smtp.gmail.com with ESMTPSA id h20-20020a056a00231400b006dacfab07b6sm3463559pfh.121.2024.01.18.08.02.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:37 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 4/4] sparc: Fix sparc64 memmove length comparison (BZ 31266) Date: Thu, 18 Jan 2024 13:02:28 -0300 Message-Id: <20240118160228.741832-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118160228.741832-1-adhemerval.zanella@linaro.org> References: <20240118160228.741832-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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+incoming=patchwork.ozlabs.org@sourceware.org The small counts copy bytes comparsion should be unsigned (as the memmove size argument). It fixes string/tst-memmove-overflow on sparcv9, where the input size triggers an invalid code path. Checked on sparc64-linux-gnu and sparcv9-linux-gnu. --- sysdeps/sparc/sparc64/memmove.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/sparc/sparc64/memmove.S b/sysdeps/sparc/sparc64/memmove.S index 8803a03d4e..f14b09afaf 100644 --- a/sysdeps/sparc/sparc64/memmove.S +++ b/sysdeps/sparc/sparc64/memmove.S @@ -38,7 +38,7 @@ ENTRY(memmove) /* * normal, copy forwards */ -2: ble %XCC, .Ldbytecp +2: bleu %XCC, .Ldbytecp andcc %o1, 3, %o5 /* is src word aligned */ bz,pn %icc, .Laldst cmp %o5, 2 /* is src half-word aligned */