From nobody Mon Feb 12 09:28:24 2024 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 4TYJzY14GZz59QM6; Mon, 12 Feb 2024 09:28:25 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYJzY0XP2z4HWV; Mon, 12 Feb 2024 09:28:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707730105; 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=zZmaWsRcqyfUhgAhdF4PkR2SVbdghLAP+acmh/QoAYs=; b=pHiNl5Xt39awJJr71DPnQ+wnBjO3hjaOaT4vxdpYESXNd5OA10aAq3Yr9Cl5v8VRrLvgB6 67C1nHJuJNLcAoVC3HkEUnT9uLIg6l+5oyn+P1CwSVmXvXxHEUcuPDz9UnoxA3OZk0eqUH RSLeM0t1F2KnrFPW0MzdUjr+tO0CxYWPleq/bqeU+ugieBnqvUYujqgGnwGY1Kd8PEEu1b gEY7lKLbierSAa+u/wSj1Le++z+jzpaWYeuLQ5TimkliVD4nwTaiEPs5H4kZY8Rm4D5Z+v cTeS0S2rReIGFsdCxu7jGbVONTsWhnsS4p4hybDrpp8OiW+tklh7s6kIUiuj9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707730105; a=rsa-sha256; cv=none; b=aEU+ZARHu56lyOqhEWE7DrhtaFHnoicKScXKYW2I6giw1QF37b6IKsV0CIBq0uItdZFZZ6 VLfoX/Shmk5VYtZYRodCpGU/9ulZH2tiqhtKSsvrFi0NLr3SZ/uJldjBLZ4sdifUARRF9E xmeA5yRFEW4c20lMD+en9FfKkt5duchRY5vzdAQ6G/Rs0ljdwqn6+3MpXdTnQVpAm70lOO wXOwdDdRStOzYbBC8nHR6XkceHd7MdKOjBvflXHdZ6nh+PoqupSkVIPjLSbYIHVVhNzUlN r5+i4Hqzk5afvu/nHh4GmDCgaoCkCyq+5uUa7PUrb7Yy+opH8WpapQWEribM/Q== 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=1707730105; 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=zZmaWsRcqyfUhgAhdF4PkR2SVbdghLAP+acmh/QoAYs=; b=QAJ7tdRuAuzICkEBqS3dq/zdvAVnpRCD3uKi7neXQ0ZGw8FNppe42nmRFv82htC4Sqt8jI FegjRiCQVM1kaMoZ6xl6n1pAUhDyCdDNT/QY2DpCmFBezV3KdJk9OUmeqN2JrHb1B93/Sy c0QYD5ugVvbS7J/tjXV3sfySTlHs9uzqMIWadcU0fKnLe6AluGpf+IHiJxvzuYqh2ZqIHv vVIiIMqUPSpdCLi9Zsc3zmCi7N3/kkxG8ZfoliRjU8mMos846/rjYeWmb33R0lOIxm7JDx n2R74W2NIn7yRNW7P7hxEorSWazPlOesXqPjwO/WR2FrUiWsfAuhGryokWYujw== 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 4TYJzX6jkxzLlJ; Mon, 12 Feb 2024 09:28:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41C9SOcu073528; Mon, 12 Feb 2024 09:28:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41C9SO01073525; Mon, 12 Feb 2024 09:28:24 GMT (envelope-from git) Date: Mon, 12 Feb 2024 09:28:24 GMT Message-Id: <202402120928.41C9SO01073525@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: d9c0e2e16660 - main - Revert "Build clang and other llvm executables as PIE" 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d9c0e2e16660ecbe33e780821e95508a1d7870b1 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d9c0e2e16660ecbe33e780821e95508a1d7870b1 commit d9c0e2e16660ecbe33e780821e95508a1d7870b1 Author: Dimitry Andric AuthorDate: 2024-02-12 09:27:00 +0000 Commit: Dimitry Andric CommitDate: 2024-02-12 09:27:00 +0000 Revert "Build clang and other llvm executables as PIE" This reverts commit 470f9f13de10e47e6d45721c15af6b4abe7aad55. I need more time to figure out how to make this work correctly with incremental builds, which it currently miserably fails on. --- lib/clang/Makefile.inc | 6 +----- usr.bin/clang/Makefile.inc | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/clang/Makefile.inc b/lib/clang/Makefile.inc index 5a8ead5292c6..2dfc966726b0 100644 --- a/lib/clang/Makefile.inc +++ b/lib/clang/Makefile.inc @@ -2,11 +2,7 @@ .include PACKAGE= clang - -# Build only PIE static libraries; bsd.lib.mk does support this directly. -MK_PIE:= no -CFLAGS+= ${PIEFLAG} ${SHARED_CFLAGS} -CXXFLAGS+= ${PIEFLAG} ${SHARED_CXXFLAGS} +MK_PIE:= no # Explicit libXXX.a references .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index 8f812e24fcdb..831cd56a8c25 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -3,6 +3,8 @@ WARNS?= 0 .include +MK_PIE:= no # Explicit libXXX.a references + .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only .else