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 X-Patchwork-Id: 763631 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e5d:0:b0:337:62d3:c6d5 with SMTP id j29csp860737wrz; Thu, 18 Jan 2024 08:03:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMUKgLv9n+2KDG83cT/yTMr6w7T/+xyW0aL7zPqm/6j+RYEHLeO/nbxKaojxZzo5CQ+RM3 X-Received: by 2002:a05:6808:1520:b0:3bd:a0cb:41cc with SMTP id u32-20020a056808152000b003bda0cb41ccmr124407oiw.35.1705593780241; Thu, 18 Jan 2024 08:03:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705593780; cv=pass; d=google.com; s=arc-20160816; b=UT63qikJ2w4oG2pRlKcs0mFMfwbTwyeiQ/YM9R8dBaUCs4IBO4rMbLjBfpH7bmpM0W M/G+EnDMEJMne8K9ssJSw78j1a9Q0t/LTXRt5ZDduN/VuElm9cjuGC+ZOcHpHvZ+itcu SEvxLvjyfmAGRpFSGeg3/8efLy2mAYcKiNGbwh5Uhv6NLzGF1NBcJHzz2Kzn3DXYg8Jz mhaIHHFxlyLwRuPX8y4UfdtC9DdRED6jwMLzH6et3OeTrOncg/ZNy4rnB4us+APM7p0i Mr5hk8a92Zp/23jZ6VdHSKzKkGwofAutQItmO17LHR2NRY3nbZsVWGxQhNqojWjZZmyY jszg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=BucMoeY2j77ot6GKx/7CnVdGiVxq6F2GC+8Big4fxzc=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=GTEaQ2kB3BRcqRGjpRgDoXWTDGuhWkFlSvQ/3V5umsNUt6lq5IVjOZpVlAa+Iffhsa fWiVR4VY/B5gY0yYT04Ypo0AoszqZ7MQ9IyEiLQn4QoJgr0utyKeh3Pc2eRaA1I7Ay7U CLNtCp6+dlc91NWJzpMcIFvGBoFoiDTKdA+6lVSJi/omRf4WOsn3fgLAwkGa9PiAnq+H DBsTSIFXrk7Dzt4jbByhEubiRPANfABMcwxO7proAHyCPL4weML2a37ToukEZjAaRB3A igle4KYJ/Z3Hkq4ZVa4QO8OIO/lk4G0kVnCfWL/YydMANgm4E+YRw0YFKoNRBVr4afqI JODg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DFri8f1x; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 14-20020a9f200e000000b007cdfdccd3f4si1828904uam.31.2024.01.18.08.02.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:59 -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=@linaro.org header.s=google header.b=DFri8f1x; 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=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CFD1738582A3 for ; Thu, 18 Jan 2024 16:02:57 +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-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+patch=linaro.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 X-Patchwork-Id: 763632 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e5d:0:b0:337:62d3:c6d5 with SMTP id j29csp860848wrz; Thu, 18 Jan 2024 08:03:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IG61wq9UgLSt+sE3P2tm/ydUYyNKQhCEomFyNhDNXQMXwfBwhGp5w7sFM/K/UZb4VDSPZ0W X-Received: by 2002:a05:6830:1181:b0:6dd:e0d5:80f6 with SMTP id u1-20020a056830118100b006dde0d580f6mr1213236otq.12.1705593788616; Thu, 18 Jan 2024 08:03:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705593788; cv=pass; d=google.com; s=arc-20160816; b=YNhXZVmu1vbMPCvJZOZm/UM5aXXlRTSmBvpnO8Vgf1pUI4EjeGcXxEVEvPmiU94v4w OZob9doNZMm+YLBczUuBtaw/75w7vXC1nYv3OC2B/ffz9GFBVTNwyoGH9/qFmdFV7HZ5 zHbaLIGwIJpGPSyVBmHwkRCfd9mQ+Waz4DB36Sxq8JoUIyzLaon0hwO/Mq7O0ColaddP LKwgIsqouMsYYjdBpxC3IHgUMKkNpMbagaM2nRS7tvhroMQIdzcazyW15Dwk7bb82EmM F/MBfFMBKUwEz5f2rw9kB2fFyeVBPETSR4WKK5HAvwumpfRn2Wxy9/lFnu22mTX2aLB/ tfCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ViXxLsmdylUppPP1Vjx3sYq2OlSI6bJq1V5Hnpo85GE=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=wTtjko96SW/0bS7UWCxbpk3WAqAtUzwmS+p9fSPiVyUaYIO/3AFhilgKzsDGIJI+IB jn73ykh1jXjB1EZGbpMTtglTvWn1zL4Dt8VcwGqzn4CRqMpQV/hT9jjL+zi+qlmE1dQa AOE2b6Fh19FoUqRbwUYTPz4djbodNjgqVY2cFr5z4XukZiA1U8kw0mC+uvmG2N1+0D9y SkmQ0TDwKPLg++ZR8OZP6TQCDi9dDl655aSUTCpR0BrzuiHgrPCliSEMp/bOTQ9yHq/k uhk73vvNK8On7M1TwcHSKYpsHp/0Bo7MmdFoISp2YptkZDJSM7xAu8VLqL0WuItKL7QM juow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1lhIVHg; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dl19-20020a056102299300b00466ef41f82asi1466495vsb.181.2024.01.18.08.03.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:03:07 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1lhIVHg; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C4A03858022 for ; Thu, 18 Jan 2024 16:03:07 +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-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+patch=linaro.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 X-Patchwork-Id: 763630 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e5d:0:b0:337:62d3:c6d5 with SMTP id j29csp860685wrz; Thu, 18 Jan 2024 08:02:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEb8MARVDn2yy1GFq5VzXSgFyqEeaaHTFS++X9x+PgsTPWpduic9pqX5v0F/2behRZI150o X-Received: by 2002:a05:6808:4082:b0:3bb:bb7e:7aa5 with SMTP id db2-20020a056808408200b003bbbb7e7aa5mr972446oib.112.1705593776622; Thu, 18 Jan 2024 08:02:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705593776; cv=pass; d=google.com; s=arc-20160816; b=Q16KTLKQT2qcme/2AWPQvDa2bqvgCrPi3/B4yLuJoE1DFdep3gO2zzu+ug7eWmJGMH 9v8fFoP7TWDt1uIuqgzNnKe+nwOgQLyP06EDE09d69rkNm58FE31zvQY9YGQqo6FSeYX aTdaFgzYobwdNktPEd/WwimrH1n5VJ8QfZr5ULOEUgPMJwNQp85RNZ8knp32sUpGflJS ZnMqYGPR8fb0JtFBD6E4pBO2lsMXLVDXUyrfEfnXTyTcRAN2+7keir2xafsQnslQcHF/ 7EM3MKtfWGk5CfFb1W4fYJtD0zsoj2HM0IbcVwn3ZuAw8kRQltTidtMhBrXXVBZhAHof dwxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=lJa1zwgJRTaN7OlOrvsitil+VhAt3izGGGlycII8Ti8=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=1GXubyS6XMmyn8ZFR9R2hylwAtYTJgfi+kqfDlnwL00DKdh7P4gQQqQVKw5BidKqds InSCC5O73awsQOA/owcVqJDC+khGcoAwKakl3wj8ex3PQTkITR0meV3tSFgzu9eb3mRk OzqlIsJivYaCZ0874q7qV8ouFX53ZUeWCYOrt0Q6UhxxnqSDvYww45XWX67luMn48SQL g+bdwRuvnv9Rb2WHzjEXP1r5y4FfECgfbdFx8sN1qO6uQK0vxpk3nHtWrb0A6rOFjY5F JXQQR3Boq2CXOpmZlzFqSYQPu/zSovvMnK9sP8sxwW0IQGMAEr5hF7uE6RvNJMywy7m9 Dk4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQfWxhPl; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q29-20020a056102205d00b0046803ce9962si1522032vsr.12.2024.01.18.08.02.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:56 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQfWxhPl; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16DF93858401 for ; Thu, 18 Jan 2024 16:02:56 +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-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+patch=linaro.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 X-Patchwork-Id: 763633 Delivered-To: patch@linaro.org Received: by 2002:adf:9b98:0:b0:337:d511:26d3 with SMTP id d24csp252275wrc; Thu, 18 Jan 2024 08:03:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeXWdjOrfjfuI4HRKVZpAuFCEwfyhKaKtlBSssFYv89wzbuwfxzSKhvbRVBZZrOnyZbtK+ X-Received: by 2002:a05:6871:722:b0:210:a3e9:3bca with SMTP id f34-20020a056871072200b00210a3e93bcamr1090115oap.98.1705593824405; Thu, 18 Jan 2024 08:03:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705593824; cv=pass; d=google.com; s=arc-20160816; b=xeSgORPykHDnV2O0ggRtQilq1RkS8c6R09zZ6DygEPvsLmBLqY4fuRZVPsOLKE8s85 +CSj+2eEwtf/tWSBDIxFubZ/vgmfidm0RzyWFYAY8YHqe5F+I10zjQ6Dx4mpErCtURpZ fJPQkMrqfaw7pqE64Lg2BAlxvFe3VAlR+TZBmdeirFoupg8KtR60oOB54cdpauxO+T23 FaT30ARAjWktg+amkY/Jw6Z+WHhDngEYIunnOTJ4WKaOsfKyARnEprM9ABJ/ASzck6YS f5a52DQtFNGlAeko+O1QfcFvVgWzzefb/KeIJ1cB2qE3tITZNyNaXv4EsemCbQPus+de l4IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=OjMc5pfKDy14cEjMBGMddYbUXullRlhqFajP6iThMvw=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=OmhCtUrUcLIEF2+UioyInPCTg5L4im124YgZBbTNauMHX0x+6RG3cmp7JTDgujJF8q hxAGkGgoZb9GT7W6yeb29cJFdlhJVGsEx271s4QJ8SWPbiyN9KRxu+/OJfaixUf1kL5A AQFPM4T/ZohnbUcC8qqFZRqzdCmIkYIH2xZjlGtD+vSUqrbg39gckpRUrDHDok0dVBzz xgiJc6jJeJagb4s2aAajyiJD8nT8Yxk+DmnGDz60FnD5xNE+n8iruj7X5IXjxxNz2CsI 8DwBY3zdOuEErxn5xywuCLqWvS1Cmj/mwycMzLUMADagDcT1S7HTfh3Iw5r+onIGceBh YO9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FvQq/R+g"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id g21-20020ab00e15000000b007ce3e899235si1847808uak.186.2024.01.18.08.03.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FvQq/R+g"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3EB613857B86 for ; Thu, 18 Jan 2024 16:03:42 +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-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+patch=linaro.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 */