From patchwork Fri Jan 3 21:53:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 104009 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 20F433858D38 for ; Fri, 3 Jan 2025 21:53:43 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 80C983858D20 for ; Fri, 3 Jan 2025 21:53:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 80C983858D20 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 80C983858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::634 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735941204; cv=none; b=b008URiCV9JpwlzLDU5z2EW9UxlZ7dqDu8n+QVoWd1dc+VFvw4GXMcKR0m/GZLKhhS1IV9rwn44OEK8nU+lLtUW9Aru6WCF9pIq7idPA4N2TcZsp25YoNTb2uHuS1ARTid+9b5NkAOVEnvx5bj2s3pMNLzlqDluPLri18BjAGWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735941204; c=relaxed/simple; bh=FtCCtPC2m1PxU7ITVzhBwYeOYmVlEZ+ptdNEP6KEQpM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=qhtVtFaOOiIzHoUiTdUZAHBajN1bXlnKr3Gemynp85BnKUGjamOc5YMCY/Scb+Fz0Bsj2oGvNjIRmMANv6LIL6mlXoZ2nMr9rbINirdyjujFU1BxzUnwAoACzPdS6nne3IeVYWsnpVPsLla9L/qjnYNtzKD4Ic6HCcMdnH6BEnA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80C983858D20 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=VnBqnLAx Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-2166022c5caso156488435ad.2 for ; Fri, 03 Jan 2025 13:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735941203; x=1736546003; 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=fCeb9P0lLVJUsG558TbgojgtGIaGNA2pK81s2MzAJGQ=; b=VnBqnLAxIXiz5p/IennePT1JvS5yNHiutdnA8+eFK/vn58pfKw9IlZL42OrA/8p9wt M4nfXEnuj93Wu4i2O5BxJK5j408FhTaJ+OAXEdNm+45HsLwS7nb5jIuFE9t4/heBbFqu BDJvLQfquAOtHEai9GNQ6T4Be626rjm7osNv+sT+STf4qZdS73WeWGhYooFBEhLXxm4T 20egrUvnxVA24R7XTvsf+emHj8eCkmd2OJW1rTLWmBgrgMUvQCkHLW0szpww7Oo6KRKz XqLH2yfaJoGlxBEUrkaZCvO+kDV7gIqk1E9iWORSE0z1m5iZKLjZocdzrgGnjh0H7wgY uQ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735941203; x=1736546003; 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=fCeb9P0lLVJUsG558TbgojgtGIaGNA2pK81s2MzAJGQ=; b=JxCpNKgAZm53duOCW6uEaWS8KcpdXanhAw9dWErMHYhUIk6c4+qDT1Y1K9NKSq5Bas ZMHcTs8cZjopH+j27A2FORFn147IwydmtuWInHTne893wyYjiys5wLmSu7GKSaMvTpkx 5DJVRPduC1FjRY7iAc9BwHnwEUkPynYdyJtrRq4sZNpgm5bTrh/y3YpxSa5GKiAZR8VY uo7Z8amdOjTC2H45keuI5xRziaoUbioKTiOUoLBmcPl9SLLtuCzIiG84YVKe1WGhkXM5 e3hiK5POudywCejhUuhvQPZkQPYsSt33izseGDbFaG3YeaQoaUHrseFAonodpvvvgKVX V6IQ== X-Gm-Message-State: AOJu0YyqZdD51zR7TbpkZiDa1m34Dbl4YgaV5zhO+xS36XMlwVzsks5T i5v41i2Zq7v2jnfhMmYoDM1LPFw3tx3x5yFJITnAVAVENDI3GrW0gZ4HyC5Sn8JwBvNN X-Gm-Gg: ASbGncvu43EsYBNmlLZci5axs1CDImvfRo9xML1jhx08brVNz0CUOC4u4G0+JP86feA /eNPRnU7bNTK6hWG8a9QmrDOu3CY2Utw6f7Twv1iScamb70QcBL8XyTQPehpcWwIJvC4HoAa8w2 pWyd5UE6rG1d1H1+nsfXpmx9i28ixWfQO3IsVOQWtGPRH3FMIxqbg17aFx5WnMbidAamjzr5vN/ 8tMqOCI/YfMNTmOOVzOAP0UYoWdvO52mqMkfKcrGAHaowORWx/iLpzlfP6NssyrarDU2fB8CH6o T+5OLU7dOg/STOwL X-Google-Smtp-Source: AGHT+IH+pil8LJbvPI4JiHZZA+sYJ9FUlQSmL4mVbM1Oy3sLDX6ma0cRi1Zltbk93p+0IwwLWKpd1g== X-Received: by 2002:a05:6a00:600c:b0:728:b601:86ee with SMTP id d2e1a72fcca58-72abde82a17mr73083692b3a.16.1735941203347; Fri, 03 Jan 2025 13:53:23 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.30.201]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8fb8f5sm27630584b3a.146.2025.01.03.13.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2025 13:53:23 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 92BE6C00D1; Sat, 04 Jan 2025 05:53:19 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: schwab@linux-m68k.org, sam@gentoo.org Subject: [PATCH 1/2] loongarch: Provide stpcpy in stpcpy-aligned.S for rtld Date: Sat, 4 Jan 2025 05:53:18 +0800 Message-ID: <20250103215319.1491558-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3019.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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~patchwork=sourceware.org@sourceware.org When stpcpy-aligned.S is used in rtld, provide stpcpy as a weak alias of __stpcpy. Signed-off-by: H.J. Lu --- sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S b/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S index bf4d0da76a..c76147526e 100644 --- a/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S +++ b/sysdeps/loongarch/lp64/multiarch/stpcpy-aligned.S @@ -20,6 +20,7 @@ # define STPCPY __stpcpy_aligned #else # define STPCPY __stpcpy +weak_alias (__stpcpy, stpcpy) #endif #define USE_AS_STPCPY From patchwork Fri Jan 3 21:53:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 104010 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 817893858D3C for ; Fri, 3 Jan 2025 21:54:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 817893858D3C 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=SiiI8Q9r X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id A617C3858D21 for ; Fri, 3 Jan 2025 21:53:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A617C3858D21 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 A617C3858D21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735941204; cv=none; b=h3VIBodIlqL/vxTvET1NiM3b//0r310VUQ4V8TIy4wnxonY8P2Yy9Dr1d3/faEuihKwFlScRxByvXoC/9SJ4ecGltdHuBq5gjwVUZiXuNRkn7jFs/F6tZJKdga6CYwW2t3xqcAeOzEnRTAQBigJPl2L2P2+uuJNy6u4IKRRE7Bw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735941204; c=relaxed/simple; bh=uqJIk/zoMRaqgn5/Mo7YHCG5RV6P93+fh0QkrGKcRtc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XvBvmcdQWjkSHLJ/3Nr+2/oaI/0TnKFE+4lD7LYcPzsNl44gSGCrFqzah6ebHf+sxLn7KHTOog/LZKdXKhHIl0/r3JTDOzbpIPrvr2XUIf5VndegN6kS6dvr+bdoXi37XvEzJFzdZ+i3PdJI6icIDaFiw7+bTl8fI1PdEr1aKwI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A617C3858D21 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-216395e151bso129025815ad.0 for ; Fri, 03 Jan 2025 13:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735941203; x=1736546003; 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=AAgjHnI/UjGP5mubbJBtH0unV3EG3pqpWk4s2jRWzWY=; b=SiiI8Q9rTn/ivwVTfDmkDOf43sGus5taqm3KOeqACQTCmPt83HlhAmNBYPM4WXQRpf MiJzbeKAAcG+NjFamfCL/ZpfAiAJ94co8H13ijL84FnVbtcAKRBt5KJqk+ragYNPlCQo d6B3oxCGmdRcZtNJGmbL4Q6cF8OdtGpcqcYqBx2oYYxtj6Rn9w/PBg5ColvoIPi74u4D Xh32k3Wqt43Rm8n3nsKO0XanR/6t8Ibh/xL27m48YxVToCJKk3AweiHplEQz2ckJxnly daUvKa853entw+L9D7MzOnp47s7P1mXmyWBOfhfvsdrFw1PSQOTjkTKzBhTbU+m1rWl3 u6nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735941204; x=1736546004; 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=AAgjHnI/UjGP5mubbJBtH0unV3EG3pqpWk4s2jRWzWY=; b=ZJEB/j2+fC0ADdq2TJDqNmEKj9dIBFriu7eogBHIm/6iwEalbNDBnmDgPckdO0ScPO mHq0KFTGG4AruAOk6vNWxsPQGLNVSgaYopBTjl1br0XDMkaXeiZ61Wh5gh5kRz4yc47x mJzFDHcH9sGmGCZntd7s44JlPNxbhv0tUbwczZkl+uOG9szXyVptRxw5gSG777w+yaqb JhX7oxYNqzI+knWYOg8GalZIkeDVulVoxplZpVeGAi5X+LyS6g1n6+0JAGVCGVRaJLvN V5IpS3Zvy03J4/aIMcfxNlEEFii4X3AtwNNCI5yNc+gPif8ULoWCJuTwdOJISq4QS9OQ xVWA== X-Gm-Message-State: AOJu0YwHuGu4C6PT0cQw20dc8TZf332mryqhwC/EuDexMx2L4dFm6MjR GFT6zx3Rw+7v1ADOcNz3chGxA9kGIqFb07N/K1qyzy7DYgTrWV/rEZTLEVnqDPprdvzx X-Gm-Gg: ASbGnctWNihQMyzVK35BAioX17FQdUz0CNSMDeQ0MV3Wd7AedVMUGbWSw91fOvuGAgn qSArPAOZ6Jz3tzwHhUbG6tFUuooGak/mJ74hlxjty9C4P3axqbVUCAny6J6ij844MxNgjpjqm6/ hU4r96jdr9WZq0rTx3I6X1VhCnZABBrrkNzgFoUHydY2+FePudYextesOcvTUfL61ePd0juUtHM OuoWuX3kuPAHBB+cmcoA/gXVdnowiL/5ePMBbnNrYC815Dd/bLBtO64LdqP3cNe70fLwJbWKDIF oX2eHff7qblJ+ZX4 X-Google-Smtp-Source: AGHT+IFB5r0b3xbe+B5XS1AXh2Ns24NhWtAE/9q+c+7xnz0saxvngL/53Yp4AvLbx3cOFabQyzWIpw== X-Received: by 2002:a05:6a20:43ac:b0:1e1:e2d8:fd4a with SMTP id adf61e73a8af0-1e5e1e04618mr71914475637.5.1735941203503; Fri, 03 Jan 2025 13:53:23 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.30.201]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8315d1sm27627639b3a.61.2025.01.03.13.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2025 13:53:23 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 9EFDFC0302; Sat, 04 Jan 2025 05:53:19 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: schwab@linux-m68k.org, sam@gentoo.org Subject: [PATCH 2/2] loongarch: Drop __GI_XXX for strcpy/stpcpy IFUNC implementations Date: Sat, 4 Jan 2025 05:53:19 +0800 Message-ID: <20250103215319.1491558-2-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250103215319.1491558-1-hjl.tools@gmail.com> References: <20250103215319.1491558-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3019.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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~patchwork=sourceware.org@sourceware.org There is no need for __GI_XXX symbols, like __GI___strcpy_aligned since __strcpy_aligned is used directly. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- sysdeps/loongarch/lp64/multiarch/strcpy-aligned.S | 2 -- sysdeps/loongarch/lp64/multiarch/strcpy-lasx.S | 1 - sysdeps/loongarch/lp64/multiarch/strcpy-lsx.S | 1 - sysdeps/loongarch/lp64/multiarch/strcpy-unaligned.S | 1 - 4 files changed, 5 deletions(-) diff --git a/sysdeps/loongarch/lp64/multiarch/strcpy-aligned.S b/sysdeps/loongarch/lp64/multiarch/strcpy-aligned.S index 6bf0b803f1..43d74f611b 100644 --- a/sysdeps/loongarch/lp64/multiarch/strcpy-aligned.S +++ b/sysdeps/loongarch/lp64/multiarch/strcpy-aligned.S @@ -198,5 +198,3 @@ L(un_out): #endif jr ra END(STRCPY) - -libc_hidden_builtin_def (STRCPY) diff --git a/sysdeps/loongarch/lp64/multiarch/strcpy-lasx.S b/sysdeps/loongarch/lp64/multiarch/strcpy-lasx.S index 02c8dc6d7a..5629283208 100644 --- a/sysdeps/loongarch/lp64/multiarch/strcpy-lasx.S +++ b/sysdeps/loongarch/lp64/multiarch/strcpy-lasx.S @@ -211,5 +211,4 @@ L(zero_byte): jr ra END(STRCPY) -libc_hidden_builtin_def (STRCPY) #endif diff --git a/sysdeps/loongarch/lp64/multiarch/strcpy-lsx.S b/sysdeps/loongarch/lp64/multiarch/strcpy-lsx.S index 906bd2feea..97a612b960 100644 --- a/sysdeps/loongarch/lp64/multiarch/strcpy-lsx.S +++ b/sysdeps/loongarch/lp64/multiarch/strcpy-lsx.S @@ -208,5 +208,4 @@ L(INDEX): .dword 0x0706050403020100 .dword 0x0f0e0d0c0b0a0908 -libc_hidden_builtin_def (STRCPY) #endif diff --git a/sysdeps/loongarch/lp64/multiarch/strcpy-unaligned.S b/sysdeps/loongarch/lp64/multiarch/strcpy-unaligned.S index f6a29796ad..7231b4d792 100644 --- a/sysdeps/loongarch/lp64/multiarch/strcpy-unaligned.S +++ b/sysdeps/loongarch/lp64/multiarch/strcpy-unaligned.S @@ -134,5 +134,4 @@ L(page_cross): b L(end) END(STRCPY) -libc_hidden_builtin_def (STRCPY) #endif