From nobody Fri Jul 10 15:43:48 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 4gxbj04qZjz6lKDf for ; Fri, 10 Jul 2026 15:43:48 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gxbj02054z47kP for ; Fri, 10 Jul 2026 15:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783698228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zL0pidY3wBy7W8Wyvlm6U54mWreqlne6OGJEPd5N5jY=; b=cg6Iv1TSmNJxFvdFIilvedu5mKR+oEYLd7cWkoCG6bWE3QILil0RwJ8lnrjdLjIUal5suf E2GLrCaF6XmUaV4c/vwgJYoUfPFDaMLtbGGgUdCSl+Rx9CmAojOrHQb5RUek7pftTDH/di 81qDw9VPShhXzIaEXfVrrR8iee3sAiL93SP4+ANhvjlSuQIie849h+7FMzWuFh2ecl3Ouc /2fDoYmCRacGpfoE2IBhy7HbrlW5DhELBO+YmAD+OsVVSH4LBkLuATnBnuyjz9oaWD278G a6Aobi9hjTJX9iQOgcQ+0KjkBn8OskppqTkr81daGIOuMQL1N+qYpS2lYv0MoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783698228; a=rsa-sha256; cv=none; b=tK+aDlz605Y9KlWznqMAz7WJjCJn28O1rR9UFTc++jdqdnNKGQJqBXOb8bMo3bYLqHePFA Q88Au0CUOfTCSvpS7DyuZfSYWnWejgtitYQ8EVMiiDc11D7z64H04f6DbhspbYHh51tNxU mC7XyCKrBFwzuofaH5kkm/1gQO8yBbZR5IvTY3pQ20AOP34GmlMxlgvLnxgyTacxXPZR4K lLNqvDYE3udRPgtT1Hrb9Aux+QSv37wbDpLDEM3NCDfRK4Tem1rgqRrxvB4N85H0WsOdNB rW4qUUMFEwr68xywSalPkRN27a1UdLEKWYK8zt0UVKYWAnXCID8Rls0GJKzWkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783698228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zL0pidY3wBy7W8Wyvlm6U54mWreqlne6OGJEPd5N5jY=; b=uo88DeHa7xfZG6kb2K3jzIYFOWBIRbvSEFGybFQe6FvGHbmNUAvAOyjemTO4mnkoLHbclp TCodB9rXxYmntj+7y5zKeCd0Q3LJBx6T0e1ol0DNEA51OLoNFMVG7VbTFIfeXsZtVwwdgd XeO+FOA/WdL55iAcb0klEVyWpsAGcTW9eRp0STOFUkPcS2Gj4QpzVD4Vnow3EcSkicEbGM 2StrTUq0ySG8KexFUbBTJKh4FJk30rRELz/oCspVv1aEEdFCOgUzvq4OQCvI0qJ8MI/pEU oi6gntE+J8hQY5sYB+MzIkUbbxZlblSWwyd3c3JIdZ29llH1TOTOiWMT8JY/Rw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gxbj00kBPz11RJ for ; Fri, 10 Jul 2026 15:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36407 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 10 Jul 2026 15:43:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ed Maste From: Mitchell Horne Subject: git: 4fde25a4b239 - stable/15 - build: Stop testing LINKER_FEATURES for ifunc and build-id 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4fde25a4b2393858177913fd695778bbb9e94293 Auto-Submitted: auto-generated Date: Fri, 10 Jul 2026 15:43:48 +0000 Message-Id: <6a511334.36407.472f66a@gitrepo.freebsd.org> The branch stable/15 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=4fde25a4b2393858177913fd695778bbb9e94293 commit 4fde25a4b2393858177913fd695778bbb9e94293 Author: Ed Maste AuthorDate: 2026-03-05 19:09:19 +0000 Commit: Mitchell Horne CommitDate: 2026-07-10 15:43:32 +0000 build: Stop testing LINKER_FEATURES for ifunc and build-id These features are available in all supported linkers, and we can expect that they'll be supported by any GNU-compatible linker that we'd use to link FreeBSD. Reviewed by: imp, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55676 (cherry picked from commit 96294c22f7e54a48df44c86a4ee5848e71ac4470) --- lib/libc/Makefile | 6 ------ stand/i386/Makefile.inc | 2 -- sys/conf/kern.pre.mk | 6 ------ sys/conf/kmod.mk | 2 -- 4 files changed, 16 deletions(-) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 56818e07aa96..fd546dfcef61 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -190,12 +190,6 @@ SUBDIR.${MK_TESTS}+= tests .include -.if (${LIBC_ARCH} == amd64 || ${LIBC_ARCH} == i386) && \ - ${.TARGETS:Mall} == all && \ - defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" -.error ${LIBC_ARCH} libc requires linker ifunc support -.endif - .if !defined(_SKIP_BUILD) # We need libutil.h, get it directly to avoid # recording a build dependency diff --git a/stand/i386/Makefile.inc b/stand/i386/Makefile.inc index 324c211420ae..bd4b893df0ac 100644 --- a/stand/i386/Makefile.inc +++ b/stand/i386/Makefile.inc @@ -23,9 +23,7 @@ CFLAGS+= -I${BTXLIB} LDSCRIPT= ${BOOTSRC}/i386/boot.ldscript LDFLAGS_ORG= -Wl,--defsym,ORG=${ORG},-T,${LDSCRIPT} LDFLAGS_BIN= -e start ${LDFLAGS_ORG} -Wl,-N,-S,--oformat,binary -.if ${LINKER_FEATURES:Mbuild-id} != "" LDFLAGS_BIN+= -Wl,--build-id=none -.endif LD_FLAGS_BIN= -static -N --gc-sections .if ${MACHINE_CPUARCH} == "amd64" diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 9a343e5e338c..73551f56f8b8 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -114,14 +114,8 @@ CFLAGS+= ${GCOV_CFLAGS} # the others. CFLAGS+= ${CONF_CFLAGS} -.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} LDFLAGS+= --build-id=sha1 -.endif -.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" && \ - !make(install) -.error kernel requires linker ifunc support -.endif .if ${MACHINE_CPUARCH} == "amd64" LDFLAGS+= -z max-page-size=2097152 .if ${LINKER_TYPE} != "lld" diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index b466dca4f0e4..4bc69b95a25c 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -158,9 +158,7 @@ LDFLAGS+= -d .endif LDFLAGS+= -warn-common -.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} LDFLAGS+= --build-id=sha1 -.endif CFLAGS+= ${DEBUG_FLAGS} .if ${MACHINE_CPUARCH} == aarch64 || ${MACHINE_CPUARCH} == amd64 || \