From patchwork Tue May 21 12:28:29 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: 1937395 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=Jl0Y1joJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4VkDJ40Lc3z1ynR for ; Tue, 21 May 2024 22:28:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4753D385828E for ; Tue, 21 May 2024 12:28:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id C29943858D1E for ; Tue, 21 May 2024 12:28:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C29943858D1E 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 C29943858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::629 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716294515; cv=none; b=JJeFC7wdX0rH56vtk4KgEQWSRwSD8ewouyIU9Dt3Wea6MRsCe6yDh4XNTpk1f+NO81eT+Ou0YcI2fz69xtBpOiSPimugsaBLnQDtWdm0QUnbuAUYzsKdT51afrGY/6SXPuL6qbBhFOHjg5CFWpnMgNCNS5aGZ4iFQ8u8OG8PcGA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716294515; c=relaxed/simple; bh=qmb/+DWssYkMs29S4dObCs6gSe8DKtz13nPp9GfBpq8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UXrt2B4o5hECn+IWSwwdN2FMTimf/0Y0EhB8TukV7ciDNJgFBnU4Iadno+vL6sL0Hn9ilYvYZ88yvtLFTG65mQMl9JDXUQ1hBLefpiHBmGWvk5FY9KTcO5GNCwTbA+f1z5a6c/8q1h4LpQUu25mdCc4macRI7xCwp4M1ibP6bGE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1f3105f3597so12498445ad.2 for ; Tue, 21 May 2024 05:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716294511; x=1716899311; 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=roeMf+gPHQZu5BvIViz7N3SrWjdqng5ieo0pSBNorE0=; b=Jl0Y1joJH414Hqu4tgmVIeqJxFFoKy6ltnClBGvzFimUligX7oqNPGQILvEL/oCVNR X9HwyV9Qb7GqDWpoedC4UCAFpFfLbnRPKX4fYxP/PYTErgQrLawqoc+EU9SeOppJLkiQ T3GvVcVIaMz3wRK7tN46htRxbG07oAmEN6zKuqkpwR3Y6ZU6h5ZOZSI+f5d1Hhr+izAa jjpgs+vJk3ULaw8gmOO/kphAuH6RUI7QrU7VH6CvEO7EA4e9MZQp0czLFgnL/H11EbEG xN0bFw0CKy2ukugSvga3EbFEvc04vBu/4zpsecj94lBGpKTXfVR4VLOs2GCTpXswb8wM NLYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716294511; x=1716899311; 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=roeMf+gPHQZu5BvIViz7N3SrWjdqng5ieo0pSBNorE0=; b=VVi6R8O5Yy/2tMCoBpEiD+jvnSxSu/BLDmp5r4FnV5fDr8g1hFY0uSq6L2zg1enqWa cpUhHv8Qhk5px3kjEfbFffj/XeHg7Av+uTut5V6UxPclNAIoC+ykQb3ibckIgKo0B8/n 0OiYEmPBmJBcOxLXrxsBsFmUmSYTacf5kQDlg23SKovc4CLzjus4zaYkpcKIvOaGFtvp OGkjzWfKPjbGBIRSVYLE05m+7K9CSc+HGZEvPTl2U2sdvNxHcvsj2HHOG5LhtcqSiYj5 oj3Y7J8awD+e5mLvAFGm+bCTUcMdOPPzJzF0mEqHcHMtR3vIJPc73FNGioyDdkEPeQUI FIfA== X-Gm-Message-State: AOJu0Yxe+bk+vUhXsd+1vJdXbVgzcNU6+nDYF++joFEsB6BLY+tfXxUX x1zbPpiB79wyvkCNUSZa8ND8E9miR81Cxok3ENAQHyeXPVT+5t0MAZJuOA== X-Google-Smtp-Source: AGHT+IHAqBS44Ag7vO7oe3kL+Cc7G4bZ48NeIYZVbx/efAyShQH8Z4ruGCPcx5HwW52iyWehvceB5w== X-Received: by 2002:a17:903:2345:b0:1f3:93e:4963 with SMTP id d9443c01a7336-1f3093e4f31mr39307645ad.21.1716294511546; Tue, 21 May 2024 05:28:31 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.56.168.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f2f072b1c6sm57236235ad.308.2024.05.21.05.28.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:28:31 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id E95FC74032C for ; Tue, 21 May 2024 05:28:29 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH v2] Remove the clone3 symbol from libc.a [BZ #31770] Date: Tue, 21 May 2024 05:28:29 -0700 Message-ID: <20240521122829.2344430-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 clone3 isn't exported from glibc and is hidden in libc.so. Fix BZ #31770 by removing clone3 alias. Signed-off-by: H.J. Lu Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/aarch64/clone3.S | 1 - sysdeps/unix/sysv/linux/arc/clone3.S | 1 - sysdeps/unix/sysv/linux/arm/clone3.S | 1 - sysdeps/unix/sysv/linux/i386/clone3.S | 1 - sysdeps/unix/sysv/linux/loongarch/clone3.S | 1 - sysdeps/unix/sysv/linux/mips/clone3.S | 1 - sysdeps/unix/sysv/linux/powerpc/powerpc64/clone3.S | 1 - sysdeps/unix/sysv/linux/riscv/clone3.S | 1 - sysdeps/unix/sysv/linux/s390/s390-32/clone3.S | 1 - sysdeps/unix/sysv/linux/s390/s390-64/clone3.S | 1 - sysdeps/unix/sysv/linux/x86_64/clone3.S | 1 - 11 files changed, 11 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/clone3.S b/sysdeps/unix/sysv/linux/aarch64/clone3.S index 92d69a5430..e28aaa5083 100644 --- a/sysdeps/unix/sysv/linux/aarch64/clone3.S +++ b/sysdeps/unix/sysv/linux/aarch64/clone3.S @@ -82,4 +82,3 @@ thread_start: .size thread_start, .-thread_start libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/arc/clone3.S b/sysdeps/unix/sysv/linux/arc/clone3.S index d9a2dfff3e..38a27063fb 100644 --- a/sysdeps/unix/sysv/linux/arc/clone3.S +++ b/sysdeps/unix/sysv/linux/arc/clone3.S @@ -87,4 +87,3 @@ thread_start_clone3: .size thread_start_clone3, .-thread_start_clone3 libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/arm/clone3.S b/sysdeps/unix/sysv/linux/arm/clone3.S index e759de9730..094efc2f40 100644 --- a/sysdeps/unix/sysv/linux/arm/clone3.S +++ b/sysdeps/unix/sysv/linux/arm/clone3.S @@ -77,4 +77,3 @@ PSEUDO_END (__clone3) .fnend libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/i386/clone3.S b/sysdeps/unix/sysv/linux/i386/clone3.S index abb7356b1f..6803e59644 100644 --- a/sysdeps/unix/sysv/linux/i386/clone3.S +++ b/sysdeps/unix/sysv/linux/i386/clone3.S @@ -120,4 +120,3 @@ L(thread_start): PSEUDO_END (__clone3) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/loongarch/clone3.S b/sysdeps/unix/sysv/linux/loongarch/clone3.S index 20eaf4adc2..dfffb1f3d6 100644 --- a/sysdeps/unix/sysv/linux/loongarch/clone3.S +++ b/sysdeps/unix/sysv/linux/loongarch/clone3.S @@ -80,4 +80,3 @@ L (thread_start3): END (__thread_start3) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S index 481b8ae963..58925d6b41 100644 --- a/sysdeps/unix/sysv/linux/mips/clone3.S +++ b/sysdeps/unix/sysv/linux/mips/clone3.S @@ -158,4 +158,3 @@ L(thread_start_clone3): END(__thread_start_clone3) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone3.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone3.S index 6fdb4a6073..900c354c9c 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone3.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone3.S @@ -154,4 +154,3 @@ L(parent): PSEUDO_END (__clone3) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/riscv/clone3.S b/sysdeps/unix/sysv/linux/riscv/clone3.S index 29264be054..c81ee2ab51 100644 --- a/sysdeps/unix/sysv/linux/riscv/clone3.S +++ b/sysdeps/unix/sysv/linux/riscv/clone3.S @@ -76,4 +76,3 @@ L(thread_start): END(__thread_start_clone3) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/clone3.S b/sysdeps/unix/sysv/linux/s390/s390-32/clone3.S index d344c2cf36..1ea633aabb 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/clone3.S +++ b/sysdeps/unix/sysv/linux/s390/s390-32/clone3.S @@ -75,4 +75,3 @@ thread_start: ASM_SIZE_DIRECTIVE (thread_start) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/clone3.S b/sysdeps/unix/sysv/linux/s390/s390-64/clone3.S index ca382d903c..70ae7f1532 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/clone3.S +++ b/sysdeps/unix/sysv/linux/s390/s390-64/clone3.S @@ -75,4 +75,3 @@ thread_start: ASM_SIZE_DIRECTIVE (thread_start) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3) diff --git a/sysdeps/unix/sysv/linux/x86_64/clone3.S b/sysdeps/unix/sysv/linux/x86_64/clone3.S index 5a2d42234e..4cc19e066c 100644 --- a/sysdeps/unix/sysv/linux/x86_64/clone3.S +++ b/sysdeps/unix/sysv/linux/x86_64/clone3.S @@ -86,4 +86,3 @@ L(thread_start): PSEUDO_END (__clone3) libc_hidden_def (__clone3) -weak_alias (__clone3, clone3)