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 Netto X-Patchwork-Id: 1937839 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=LW3g7iu0; 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 4VksQb2jrvz1ynR for ; Wed, 22 May 2024 23:21:43 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7ADB638432E1 for ; Wed, 22 May 2024 13:21:41 +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-Google-Smtp-Source: AGHT+IFmhWrkwpmBuRdbdmVL9wVC3wgKyGAZPrVLzuEnJ+YJfGtys8Oq8AHVGyOHBj2+3pRwRb4LFA== 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+incoming=patchwork.ozlabs.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