From nobody Mon Sep 22 05:02:17 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cVWF53n87z68b79; Mon, 22 Sep 2025 05:02:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cVWF53Cb3z3RQ7; Mon, 22 Sep 2025 05:02:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758517337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gun8YsetDgiuXBkOyej2AivN1t0QqYexrHuC1RnC+Hw=; b=SLdDPF4IsB4KJeyHUIWRddm4HbdOIKcOu3+4LNg4U0uKMemgnIJ7wcTnQpXi4YlVPt3dJ3 TCr90O83G5KUHd0K9oMwUgrk39N/jkUqLV8bOs9H2ZiE1skks6fIWBwjUVJ2OHLP4VMwHV v6JyTasE8PaaQEN8pvBr+oeOAhyMxKm/pT2qYOKsbdwBNa7r4ZvVp0i4jflwJ2Q84tXzGv 0KGlajpQKgsBA1aDpHFE7v019bc6qhK2ujvZGBf0BczwWQ1/OILxQIYfdpNzII75XxCtN6 WTofd1XZuTxPDocyv22zHtXa0TAl6OFoYxhdJkdiOACa8UHNIh0n9z1jdpacGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758517337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gun8YsetDgiuXBkOyej2AivN1t0QqYexrHuC1RnC+Hw=; b=gtC6GIf1Y5SuT5hfU5/Ga+l80HuL1C/Wb/AjoObf1FrSE6zmYqU9qpapMZzfu906+jICZx owBuiFBt6qN05IVpisfchL7HzHH7Si9bxRgcESLbrTR9My7gIAoz0hdDTo2lrnL+u8hub4 zcWtI3wRAngdM7iLO+/Nr8jzz3ahT4Ns6ofY/3ZfcpR8Nn7Jn4HUOLe70AWXfNRUJN7M85 aCj2Q+QU9xVBbpvb5dJfRXVpaoS/giwoHS0R9VnApchn8kmmJCn3if5Lx5xzdlA/fpNShS 6+DY7xOiJilMDpzWSR+Ic6d4fYteY4n53k3VsbYeYvaT/MUmA0s5fo7/wuYmdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758517337; a=rsa-sha256; cv=none; b=Qc5bprFEmCIxLQXMMGwYZvAY05sYL15g/zKNOvCqm4o1Y0kVn1XpN2XIGr1VnkEWLdu+Ct R1WZ3feIP3bCZMmET9C91fvpauPKDkDW05odNWzAR+YHeQCPUhtmlWpcuBEbooahwUzDqX UeMbApRoN4f1U/KlI3AzPOX6haIgxy1p54BOmSUfdGfbxcWq736Ythn1ojKE9h4SYV7x8a SYQlPRwgLdsa/0NLOaMO1PvdVX9tH5wvd4STDi+If9qR31RCs6/+iQHh6R9ko7E0R1yNYM QHQM2CmVEP4PJ2ZHbhfxPml5o8TxTbkqz+HNasIg+JteyEsTIAgtOq8PmtWAPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cVWF52pGszm6n; Mon, 22 Sep 2025 05:02:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58M52HJ8012818; Mon, 22 Sep 2025 05:02:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58M52HGJ012815; Mon, 22 Sep 2025 05:02:17 GMT (envelope-from git) Date: Mon, 22 Sep 2025 05:02:17 GMT Message-Id: <202509220502.58M52HGJ012815@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: f72908c94df9 - main - libc: properly reference setgroups@FBSD_1.0 in initgroups@FBSD_1.0 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f72908c94df9a256422790d4e2a60c9c33a35f2d Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f72908c94df9a256422790d4e2a60c9c33a35f2d commit f72908c94df9a256422790d4e2a60c9c33a35f2d Author: Konstantin Belousov AuthorDate: 2025-09-20 23:50:47 +0000 Commit: Konstantin Belousov CommitDate: 2025-09-22 05:01:47 +0000 libc: properly reference setgroups@FBSD_1.0 in initgroups@FBSD_1.0 by forwarding the reference to libsys syscall symbol, for the libc.so case. Reviewed and tested by: kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D52672 --- lib/libc/gen/gen-compat.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/libc/gen/gen-compat.h b/lib/libc/gen/gen-compat.h index dac8f54b45a2..74678301af6f 100644 --- a/lib/libc/gen/gen-compat.h +++ b/lib/libc/gen/gen-compat.h @@ -52,6 +52,12 @@ int freebsd11_getmntinfo(struct freebsd11_statfs **, int); char *freebsd11_devname(__uint32_t dev, __mode_t type); char *freebsd11_devname_r(__uint32_t dev, __mode_t type, char *buf, int len); -int freebsd14_setgroups(int gidsize, const __gid_t *gidset); +#define F14SG int freebsd14_setgroups(int gidsize, const __gid_t *gidset) +#ifdef PIC +static F14SG __attribute__((__weakref__("setgroups@FBSD_1.0"))); +#else +F14SG; +#endif +#undef F14SG #endif /* _GEN_COMPAT_H_ */