From patchwork Tue May 21 00:32:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1937156 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ABpexjmZ; 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 4VjwPg3PN8z20PS for ; Tue, 21 May 2024 10:32:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 60CBF3858D38 for ; Tue, 21 May 2024 00:32:37 +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 6C4A33858D1E for ; Tue, 21 May 2024 00:32:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C4A33858D1E 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 6C4A33858D1E 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=1716251544; cv=none; b=kuEZ2MnPfZrCAs4mUgsdFpn1xZYyR8tTDaMVLMKUusbGe/+5maV4k/jE7CdPA3rXlWEwSCHAaOAD1F/CMLCD1Mq8cumKhq2tbdXd9FNxx/7x1N3ESyg2J/I035ITzuhSPIQ+OuxDNhE5RxK8y0JxSQr4K+5B1nKy7Z3/nN2ZJX8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716251544; c=relaxed/simple; bh=o+ZVmKItjO9OVJE92wJwMwHgCsKyImN6QpVY3c0DaEU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hOJLQmQ8LJTJ1T/5B+t7xXaF6NkaXzYOtuXyUphtxoqY7VAWkSicec4FlXl4NJ8YkXmMjN8Jh+AsUcoR+DruERSNn03yQto7yc7gxkV4b4Ur7tPCUNkXLMvJIMH6gHUwPcgI70NQM9LaU5FB23m8JwQRHD8Cdanf9rWC+5KFGGs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1f0937479f8so89465625ad.3 for ; Mon, 20 May 2024 17:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716251537; x=1716856337; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=891I8zPmtcO3ePrlDVucnFDE12zOYLLd0jhXdvF92B4=; b=ABpexjmZ/UAwna3kaYn8bgm2ueYYDhVCYFQpgbSuHKgjI/c19c7ZWWRMNAaTJj2HQY 34VwmNeo2/9Zf+fsj4vnozlZp3tz2nntFsLCpp5kbY9pDDXwuRSL6gD9WHuIpom3HnFo aqlR+o2dLMHFKQ8jZ0eobtRJ808jfjeIYkNX3t07Y856njDrGn/Kw53xEqRsbhPz7wAO u1Ajp+Kb6TBhyQV+9JGgT9DU5W8hvvMBriS2XKSZ4hElA6AMGFjxfdBc5LFHp4vY0Sum lVjuigcguj7BQryPKGKEY65Fjjok+NHkWkYut1R+B8W4Ohg/xsrzMNiiw/Nh6QpS5FTV Uz7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716251537; x=1716856337; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=891I8zPmtcO3ePrlDVucnFDE12zOYLLd0jhXdvF92B4=; b=vSXEgm0uVPLhm80HuUJNhnl8n738+ZbURRggC0grCTq1C4182HjP4h6KN77DLaZC25 HufXCr8LAW8wGqZw6bbUk2Gb2c5YYxeuhX0Z4sMYqhtcdjAQHLKNo0ei0p9pNMJdEQrb 0z/9AHAQrjmog58s87yfrmM1b8s+xcD8wAAaeO4Uabr6hvH0v1hnCTMq9mKK9P1tAPxG bO7tmwB1Nerj1D/sN0iAm9HCjOd/l/POFxMVPCTRXcQC2/dKYcQILYtXSlRLJH+yKRBq lwEQ/mYkpbjQFuGiqxX54EmgeGeb4puqj3OK8LzPFASFCnVqq237GRoCuR5syM83R66e fGQQ== X-Gm-Message-State: AOJu0YwFyPhMVXFiJ31k2gMBDVbJDKvAe6LvDHA6cz41CLfICKqJw7cn Mt+3mowAAc5SoLQ12PR4q6ETPbEAmuFBUdJ7D1h82dOoo8PcVTj3/48rbA== X-Google-Smtp-Source: AGHT+IEzlP9fg0hUxCuURtRoBg0JCnLdqACPYzasZ1n5Te7/mOCNIHm1OsB0NRtUeMnSnDeEt7WAUA== X-Received: by 2002:a05:6a20:c889:b0:1af:fcbf:df28 with SMTP id adf61e73a8af0-1affcbfdffamr26160694637.41.1716251537120; Mon, 20 May 2024 17:32:17 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.56.168.158]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd7525608asm3209945a91.50.2024.05.20.17.32.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 17:32:16 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id BEBBA74019D for ; Mon, 20 May 2024 17:32:14 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH] i386: Don't define stpncpy alias when used in IFUNC [BZ #31768] Date: Mon, 20 May 2024 17:32:14 -0700 Message-ID: <20240521003214.683261-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3022.0 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+incoming=patchwork.ozlabs.org@sourceware.org Fix BZ #31768 by not defining stpncpy alias when used in IFUNC. Signed-off-by: H.J. Lu Reviewed-by: Sunil K Pandey --- sysdeps/i386/stpncpy.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/i386/stpncpy.S b/sysdeps/i386/stpncpy.S index 895fee8a1e..74130bc71d 100644 --- a/sysdeps/i386/stpncpy.S +++ b/sysdeps/i386/stpncpy.S @@ -139,4 +139,6 @@ L(9): popl %esi /* restore saved register content */ END (__stpncpy) libc_hidden_def (__stpncpy) +#ifndef __stpncpy weak_alias (__stpncpy, stpncpy) +#endif