From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5F575158086 for ; Sat, 11 Dec 2021 16:01:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B91A2BC007; Sat, 11 Dec 2021 16:01:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44FF42BC007 for ; Sat, 11 Dec 2021 16:01:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 46B5F34350B for ; Sat, 11 Dec 2021 16:01:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4FE814D for ; Sat, 11 Dec 2021 16:01:17 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1639238443.438b8a83658946ab18ef459eff68e1aec7fdfeca.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/clang/ X-VCS-Repository: repo/gentoo X-VCS-Files: profiles/features/clang/make.defaults X-VCS-Directories: profiles/features/clang/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 438b8a83658946ab18ef459eff68e1aec7fdfeca X-VCS-Branch: master Date: Sat, 11 Dec 2021 16:01:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 534b76cf-c40f-416c-b709-c67aef3c8b08 X-Archives-Hash: 8aaea007f21080835f8ed038c47d56b8 commit: 438b8a83658946ab18ef459eff68e1aec7fdfeca Author: Andreas K. Hüttel gentoo org> AuthorDate: Sat Dec 11 16:00:43 2021 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sat Dec 11 16:00:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438b8a83 profiles, clang feature: shrink back hardening flags to minimum for now Signed-off-by: Andreas K. Hüttel gentoo.org> profiles/features/clang/make.defaults | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/profiles/features/clang/make.defaults b/profiles/features/clang/make.defaults index a2235ff4a494..7674593179f7 100644 --- a/profiles/features/clang/make.defaults +++ b/profiles/features/clang/make.defaults @@ -13,9 +13,14 @@ LD="ld.lld" # linker flags LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed" -# hardening flags -SOME_HARDENING_CFLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2" -SOME_HARDENING_LDFLAGS="-Wl,-z,relro,-z,now -pie" +## hardening flags +#SOME_HARDENING_CFLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2" +#SOME_HARDENING_LDFLAGS="-Wl,-z,relro,-z,now -pie" +# +# we need to eventually do this the same way as in gcc, for now let's +# keep it to a minimum +SOME_HARDENING_CFLAGS="-D_FORTIFY_SOURCE=2" +SOME_HARDENING_LDFLAGS="" # enable hardening by default, cf. gcc[pie,ssp] CFLAGS="${CFLAGS} ${SOME_HARDENING_FLAGS}"