From nobody Mon Jul 15 12:38:29 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 4WN1vp0BFlz5Qrr8; Mon, 15 Jul 2024 12:38:30 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WN1vn3yFXz4Hnc; Mon, 15 Jul 2024 12:38:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721047109; 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=vVlNA3+4YF752rju26zpwVlJPwlq0lW3SMVkhjNsV7c=; b=BzzWVTKxzTvGyKpAVwt/EWBvSf7bQPlb3/hvxg+qvoURqq1Hjceq/DcaePIyXmAVMHMIBe V1JavmMYIFaK0wT75fWEAOC85h6krtnmxliHteMSB2ZBd7cskVq0bVJcxfqN34QE8wZdRs fIwMFV2m1IoXc1RCEoU4oTk5ONhh/JEMJQnhtz00MW6PXuGh7/KjFU5VcFMYJQxuYpGBCB soEMJAK2rLT+9N7iFMcHeE1PkfGiAwY9WNJX26W0GgtwaKPssVP5rABXG8hxcte7itHxx7 z8I6+iib7BbpTUSVgFcKTYnMdKGPQws1KW/53Agnze6j3UxIUtewdlh8SnZR+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721047109; a=rsa-sha256; cv=none; b=mQDT4FF6EZ/mvhECW6krUHZwLTFtqFc/2asQkCxIkMCdjliJmHWCtA0oFLZ1YmmxjXqDCf fdSUYDYDvGkWMFtodDGk8abyZcpGyNenvVVOib9tqLAMk8pEL0ae3f60BOqWm6819+K2Ec oVpdaQEWg77VCszReJFqLNH9v6TbY9/cUNzvjqrfbtGKeQCAhzaZBXdaYdVuWSxSxNTy+V U+fTWsV0MediEvyIyRH/kEW+kZnMDO+2iL4VShBPHS/RQ6Ye/6ZXOp8LKffq3MtuDwu5gy Vc2Yb57waSZyC7TOB7N7+2Y9Y1vV1c/Gls+lNLyr39yuQ67ea/Kr4lsmyTDPXg== 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=1721047109; 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=vVlNA3+4YF752rju26zpwVlJPwlq0lW3SMVkhjNsV7c=; b=YuARxcrI+kMbKMV6B+fj9cxLPiize4cewPVnNUJ0E16y72EQGabobW3yAv2fm/cyq92p/y 9v2huKyy2r15/oWmMB7Z28taK3IoxAo+ZwKZ/XM/gsslmSJ9NkbZDuSXhVRHaUr9VE9SNr 8IdoBEhcctkldWkevnQ0tfMOMWHqHZL8JRsMoOJcZfYxozD0cxrx106EPLFIc/1mhAZSKg QKCSm1XgeP6O0TXjZZ0RMBNRJ8PC2jUQA4cuYjoOXpOs6XpZjIB0Vgesd5k4Z35NpyyP+F hwvWr/uD0WcVAMuGRjwHOIJMvTTdsTpaxA0gQ6oVz2/UquVODiXsKvY4U54txw== 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 4WN1vn3SClzt3K; Mon, 15 Jul 2024 12:38:29 +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 46FCcTja061604; Mon, 15 Jul 2024 12:38:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46FCcTsC061601; Mon, 15 Jul 2024 12:38:29 GMT (envelope-from git) Date: Mon, 15 Jul 2024 12:38:29 GMT Message-Id: <202407151238.46FCcTsC061601@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 8ecef12113ad - stable/14 - sys: Build arm64 per-thread SSP with GCC 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8ecef12113ad61e25a7c56e8c77cb6754fa1060c Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=8ecef12113ad61e25a7c56e8c77cb6754fa1060c commit 8ecef12113ad61e25a7c56e8c77cb6754fa1060c Author: Andrew Turner AuthorDate: 2024-05-22 08:20:01 +0000 Commit: Andrew Turner CommitDate: 2024-07-15 12:27:54 +0000 sys: Build arm64 per-thread SSP with GCC It has been supported since GCC 9. It is unlikely anything older than that will build the kernel so mark it as supported by GCC. Reviewed by: brooks, jhb Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45267 (cherry picked from commit c2628accc029a07eb8ff73b6df7f7d6af194ca2d) --- sys/conf/Makefile.arm64 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/Makefile.arm64 b/sys/conf/Makefile.arm64 index 77c36fa6ce6c..5e706549486a 100644 --- a/sys/conf/Makefile.arm64 +++ b/sys/conf/Makefile.arm64 @@ -31,7 +31,8 @@ CFLAGS += -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\" PERTHREAD_SSP_ENABLED!= grep PERTHREAD_SSP opt_global.h || true ; echo .if !empty(PERTHREAD_SSP_ENABLED) -. if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 +. if (${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000) || \ + ${COMPILER_TYPE} == "gcc" ARM64_SSP_CFLAGS = -mstack-protector-guard=sysreg ARM64_SSP_CFLAGS += -mstack-protector-guard-reg=sp_el0 ARM64_SSP_CFLAGS += -mstack-protector-guard-offset=0