From patchwork Wed May 22 13:21:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 798152 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp459541wrx; Wed, 22 May 2024 06:21:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXI5Ib2chvVDaWor4ndw6S9gzQUHb1zZaBRCfHsGv88OZfIYx7Uqq2KYpbgol7beIFHTLXxamo9hgSUboAs1eE X-Google-Smtp-Source: AGHT+IFqaDyTGnEoMRpRAd7omBVbszmDBaBTqKAg730WK2lgM+p4KvjHR/Yhue6jiYUMvI/SzbPH X-Received: by 2002:a05:620a:424e:b0:790:fc5a:1ffd with SMTP id af79cd13be357-794994c0aebmr224901185a.66.1716384096023; Wed, 22 May 2024 06:21:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716384096; cv=pass; d=google.com; s=arc-20160816; b=rHLimAHj2wAq8e45eBY3KCLZg/+3H1JGxnrcHVXw9m78ROB4oFoILHdyXlg+hMIl3B xqFr1LTrB5D1C61Prtq70ayuamZPJqEKFjL9O1ykJRTYFBN4SFnWsCHIo91RcL2X2TQc eJi+i8jXe9h0jwJjHCMnK1X6ccroL8GtRTaxg8/DN7foBon3p8VbDPIAInxIh+4iZOWY /OemPYdzKjFddDVbLTIpQxlUSN7/tSG+qKMR0nQOw7tVKGNx0XsMDQCwPWmQVg5jt1BB QUNTCmxg5UnPzrUUlrrZclL6Bd1/7wfrvQvEAedzvBx6Fg6n/75lbgAOViL8eykeESYr kJVw== 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:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=tIzDltYHaZ2rqPMENayJtCLT1S3xIQlOY/muX12qB0M=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=sVCHSsbXbZE06NxQhHva/0fMLKDk6SVBbBHgGtPCdCt2qndm0dWlWs+YXemylyXzhw ZpvlYCnnLsdg0G5OyDoEcX8oW7+Hu0CyIsIP5YNSrLYqoxx5qqCxzCPB93eYFgl1SrZl rlg9zt+WKjgih6iXKWq/RXaSo49ZF51ZD2/0lxMPEJnAT5jNFdFkmVaG3s6f/UpEylnA 50K4it29t0GOeGnWA/knwfJRBjWGv7I4OEFqXcLGY/ZEWaPUmOuDmf25LjuyooxyZDHM FffGdE5JCNGMwB45/CYJxXQfQQD5VBP6DJZaMMZyD5g6U85i+gMMeM5iqYu9YUaXv7me oWbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LW3g7iu0; 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 af79cd13be357-792bf30a583si3281041285a.341.2024.05.22.06.21.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 06:21:36 -0700 (PDT) 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=LW3g7iu0; 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 9CB5B386D60C for ; Wed, 22 May 2024 13:21:35 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 56808384DD3E for ; Wed, 22 May 2024 13:21:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56808384DD3E 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 56808384DD3E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716384087; cv=none; b=pqNKiPpU4O42GdMugd27yTkPyyNR5E9wh6b/ugwrJNRMekkLQHf/J+/zx82TM7gcSWI3yUVXaOHkzV22iTVZBomC1W6dXlgqqARGaAZUzZn7BV2fhhH1b8NrehGC0RhmsFAf73/0+ZT0ldbhcnJgBsF1HaIFbfExGHi4Mmr3jtI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716384087; c=relaxed/simple; bh=1eMEkSjDF8uwfKH1U4HYP0QwR2ny60cv+nsaTKWI2gw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=aS+nulx4RdStb933zwewSs4aEoYxrj5edC9XYHURCw8wg2mb4O5xIEumwM4Zxddz3fkypcEQcLzs+OMPpDdAH8pUrFLkt+ttPAzgL1kEuZRcWsx9iiaO4zoxRs1ojMWdNu3eSPk5AoNsGSIKkVRiLK+SZH4fw/3WW6G9ZVoBzIo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ed96772f92so10739785ad.0 for ; Wed, 22 May 2024 06:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716384081; x=1716988881; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tIzDltYHaZ2rqPMENayJtCLT1S3xIQlOY/muX12qB0M=; b=LW3g7iu0NQIgmRs26qHk0oSnZdCeWDMMUoCwj7e7GjqSh1mHHXHyx4bhFwQTNcERJ1 aogNbZhEggUpv4iU0obGQ1zhjQaD9VOiN9cV7nnTmPr/AVnHXTGL9ZZTlXJek2W5pd07 x+cnI0lHS4pHUV0c0gLXCLoBXLOPWWxf24VNwtkwm0hj9J0qK37lQSyZvzB4iyxxpRkT pUvH1pakb8SpdWxz7YIWKf3q59U5lD/4a4Aio8TDdNlhHyegm3laQPTObxjdZbndaZY3 Mn2DqKq9VD331vDc8moQjkWO1MUx5DfTBvm3O+Z7GqwcWUoVwalpMm1oVxqIWYUwTdqw SDFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716384081; x=1716988881; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tIzDltYHaZ2rqPMENayJtCLT1S3xIQlOY/muX12qB0M=; b=SfkTU4XcyGSEsx+2UwDzb0eHbMkHtzBlzcFu6LAD4dFEkrWPpvuUI9yaFG/1mQRmbK aRIjv74g7/ghk+myEqT/R18lIrZQi/UEshloPfAytayx15qfx9poiugladra7UKVjpuF T3G0iEswQ0c4qughTmNrbPzOt/C0u42fQTtqkJnNd5eFwOyX1EXQk0LQCwGnPlxvmMkG nrjBU3zigl/Zc6lE1YqhqEjxk7dKjh0+Q3tOEibAs9NBSWEc1hz4Z/C3jG6R7hkHtdkC b179y+twE+rGswcF/KhvPELMmhtc2kLg2UsH7p+XgYLm9aIk58Xt1XhteYk1nyQcm6qe EpcQ== X-Gm-Message-State: AOJu0YzZaywnbmbXjAsnxcuEOx0ib3S2e3HsbB3+gkkvZr4KlytaLGZa PSlh0urvLZ8Vq699zR1X+vEk7FM7gPCjGwyX6AfYJq30Q8aD3dwUDunN7eElgJ4ObGNjq4Hewaw o X-Received: by 2002:a17:902:d4d0:b0:1f2:f4c8:e0d5 with SMTP id d9443c01a7336-1f31c7f4658mr21463855ad.0.1716384080750; Wed, 22 May 2024 06:21:20 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:7718:cb55:8353:f3c4:f762]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0bad9d22sm240230015ad.72.2024.05.22.06.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 06:21:20 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH] loongarch: Remove duplicate strnlen in libc.a (BZ 31785) Date: Wed, 22 May 2024 10:21:10 -0300 Message-ID: <20240522132115.596912-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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 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 generic version provides weak definitions of strnlen, which are already provided by the ifunc resolver. Reviewed-by: H.J. Lu --- sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S b/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S index 9826d21c2e..3606225ca2 100644 --- a/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S +++ b/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S @@ -98,5 +98,7 @@ L(out): jr ra END(STRNLEN) +#if !IS_IN (libc) weak_alias (STRNLEN, strnlen) libc_hidden_builtin_def (STRNLEN) +#endif