From nobody Mon Sep 28 15:10:35 2026 X-Original-To: dev-commits-src-all@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 4htl9l6xXjz6WnX4 for ; Mon, 28 Sep 2026 15:10:35 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4htl9l6GGcz4GvX for ; Mon, 28 Sep 2026 15:10:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790608235; 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=teo4y0kTVyocZ9c1xSUYJaHfyEqfuW0NQ1VFB0rL3rM=; b=M9ixg/VU0HGDf3Mu464TyXr9MJQdvlccAMuXnsjoGL+vCyIQ0b21WFdqap+7MbadCrW1oi l2Q6YQdnu7oQdmRe3hX6rXphhLPPCrRT9ZsxeN8PllYspu1O3Mq06mvMwA4fKvtkemYNLT CnoJGuFMm/PVZRmxt8oXdt7pa05O37AKhaa5D+wfub2mvgjZvxLn8htDdf/AfmW4Dkpd1t gTp8eY55Plo8/QuYsVxd2/VqZWpKPfZLucuex1jsRkEBZqQ4pNfK4tgQp0sBt+m0WFLrLE NJ1oXjUjhJn4Zn05VlDYySMX/m2gYJ56MxXbfspPUHNOfRRevkXgmhTaL2qgbw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790608235; b=VcmlwHp9NCwkTeCynqDN/fJwemqf11DNQ4XWNW2ppuBFhiAjF6PhegZjXxyvd16/GkndFG 611bhC1L4jdA4FPOg1GI0cAITXnyrsmFuYhy0zfFh2TBbAsA+WhZCYVL69WN3ArQp6Q+h4 5aC3dfFDNhOdXBPflidDdjMvkdcXcDRY6y1bEn4NUuw0INoXfFJYnMuu/bNQ3T21KHXxLo zv6KveZ5YrpxJG+K685weklreZSS096gNRwrONg7hjA/rOvMMEPWZoyltTRFugOfyJwKeg 1xOgG7QHdfIbA0BB8Rp8NHr1+RFNKb0p/pASqGAz4IsOaE+enlopvtMrByWp0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790608235; 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=teo4y0kTVyocZ9c1xSUYJaHfyEqfuW0NQ1VFB0rL3rM=; b=paR218DLI+nl/v3KsdEk+hat9xLG06RieqHSLhEZWfPwxHfPMiCbm29TWxE7yJLqWZDbOl Fz9GQGMtDPVODUpERNnxNMMq/XAuEgYMQp/QQWAJaLIH2WM52PNhmqFxSXyM8aFaX3e1cX 3l5etS1bN5qgbRCOA1ZPHTt/MYoKweRhAj46Y+g5X8HFxOLYK1YPr8T8OjyTjNsII+uIkt EBkKDSI6GwSEfOdUS3PjnPmQVcQsKbfpAdqUuqXQYqjA2oZ6HrmOhf2U++iGx3+QWnibbD mCvPawu3/eIb0Oyb2pK4WaJfgLNFd09z3d9Wf3JqtM7rtt0yiM1rdWgQe5PGuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4htl9l0m18zYp6 for ; Mon, 28 Sep 2026 15:10:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20578 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 28 Sep 2026 15:10:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Siva Mahadevan Subject: git: 222210c6a822 - main - libgcc_s: add libgcc_s_asneeded.so wrapper for gcc 16 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: siva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 222210c6a82282de78aa863c550da21471630316 Auto-Submitted: auto-generated Date: Mon, 28 Sep 2026 15:10:35 +0000 Message-Id: <6aba836b.20578.7f0d6713@gitrepo.freebsd.org> The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=222210c6a82282de78aa863c550da21471630316 commit 222210c6a82282de78aa863c550da21471630316 Author: Siva Mahadevan AuthorDate: 2026-09-28 15:07:56 +0000 Commit: Siva Mahadevan CommitDate: 2026-09-28 15:08:05 +0000 libgcc_s: add libgcc_s_asneeded.so wrapper for gcc 16 GCC 16[0][1] now requires a wrapper lib to handle `--push-state --as-needed -lgcc_s --pop-state` logic[1] for `gcc` invocations. `g++` will still unconditionally use `-lgcc_s`. This fixes buildworld with gcc16. [0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8a99fdb70493df1294b53406913e5ea1fc971c13 [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123396 Reviewed by: jhb MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59511 --- Makefile.inc1 | 7 ++++--- lib/Makefile | 1 + lib/libgcc_s_asneeded/Makefile | 11 +++++++++++ lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript | 1 + 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index b683e007f0dc..b457a46febfe 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -3322,13 +3322,14 @@ _startup_libs+= lib/libc_nonshared _startup_libs+= lib/libcxxrt _startup_libs+= lib/libsys -_prereq_libs+= lib/libgcc_eh lib/libgcc_s -_startup_libs+= lib/libgcc_eh lib/libgcc_s +_prereq_libs+= lib/libgcc_eh lib/libgcc_s lib/libgcc_s_asneeded +_startup_libs+= lib/libgcc_eh lib/libgcc_s lib/libgcc_s_asneeded lib/libc__L: lib/libsys__L lib/libgcc_s__L: lib/libc__L lib/libgcc_s__L: lib/libc_nonshared__L -lib/libcxxrt__L: lib/libgcc_s__L +lib/libgcc_s_asneeded__L: lib/libgcc_s__L +lib/libcxxrt__L: lib/libgcc_s_asneeded__L lib/libcrypt__L: lib/libmd__L _prebuild_libs= ${_kerberos5_lib_libasn1} \ diff --git a/lib/Makefile b/lib/Makefile index 78b48382e12e..27f757eb085c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -61,6 +61,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \ libfetch \ libgcc_eh \ libgcc_s \ + libgcc_s_asneeded \ libgeom \ libifconfig \ libipsec \ diff --git a/lib/libgcc_s_asneeded/Makefile b/lib/libgcc_s_asneeded/Makefile new file mode 100644 index 000000000000..eb59daac50f8 --- /dev/null +++ b/lib/libgcc_s_asneeded/Makefile @@ -0,0 +1,11 @@ +PACKAGE= clibs +SHLIB_NAME= libgcc_s_asneeded.so.1 +SHLIBDIR?= /lib + +SHLIB_LDSCRIPT= libgcc_s_asneeded.ldscript + +.include + +LDFLAGS+= -nodefaultlibs + +.include diff --git a/lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript b/lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript new file mode 100644 index 000000000000..3461e92fa7ca --- /dev/null +++ b/lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript @@ -0,0 +1 @@ +INPUT (AS_NEEDED(-lgcc_s))