From nobody Mon Jul 15 12:38:30 2024 X-Original-To: dev-commits-src-branches@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 4WN1vq4TDvz5QrrG; Mon, 15 Jul 2024 12:38:31 +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 4WN1vq0SVWz4Hvl; Mon, 15 Jul 2024 12:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721047111; 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=JJTPav2e9/WJP9GjKgGfpXUXliyUU78KAbjmvIiBhVc=; b=cY0VtvdhX3Uu19nyp08JrId6LYLfwKjh48g/AYlVxwZihb+0Vnp3hpplwjXKE2lb+ZNI6f CA06A/hVM4PbjG+ODvrfckb2NjQxmyb2q//ROEfM4F/hl86/jhy8vtYEC2OpxcGEdXWeuE PdmomrtMlslBQRhjrw7AgvOAzSHojTXeUSmktKvR8AJzBNqtphhcFjSH6igz6JaoXACBRm Snbveae5jgglhBK/yW+qVzZ+HZLXmHxqL/WBkRHZYNVsvPZxS7mmGaChf/k8yfjPuhp4mi 6yX0aSk7LRHKFKwVQCVEkbgfauyHh7BuBfNbH39CMtGyzf7fz1n+U23PWgUBIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721047111; a=rsa-sha256; cv=none; b=q7jecoJmpbW0c5IQXcZ7PHj4y5x2emGTgeQ/3yIxPSAUdKBRnoLEUtsPVWu2YfE8MmDkfv MUbNymBvf/BjSYCYTVzcVKJ1XnNZEqIWayGQauPzpzJXQc+HP6YWERelF3wn9jdFY/xOhf BULg3+dQccvrBy7nX2Xt428HYW49sJbk76DNUlkSDHRauMpji4w975fMdMlVUWM+gHrRgR rTxHPasdB4TLH18WTVsTLjnMg3mAM9B+PJU4KuTNhqXKBe3i+1nrEOIq1RWEOsyqpzXqET 16TE4T8q+hwx2JKDKnBTthJAQ76Inc2t2GDHyITBdZmIy1aH5n/svacxtP70Ug== 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=1721047111; 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=JJTPav2e9/WJP9GjKgGfpXUXliyUU78KAbjmvIiBhVc=; b=kWkJNa09a9nid4w0K1i4Xg+CyocmwnbkQVwXGBiCf6mZUtPw9m7p870vxyu3vl3bli8nw6 i4JvHyWUfJoq7Rc55eBr3xQdy9Otv8vTnR29mMMniUqkzxaoAJJjTv67ysZIoPkO8BmJsa XMtwvaPisxHqQWI93y/bChYctSQ05bebjhD7jQKqn849+9sLqzHWHMv9swVeyjmgyZMJFp zn779QpMHUKy0a+Uv6ChCSG3mmu5LqO6nPDTr8QatPd3Mg0bVXVLlspzkh+qX516ywqkys P9jyTVBeN3JViegGEOI2Beblq5qHAdSizZUm6snV92UuKm9lFzS9ddIkQCyVKw== 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 4WN1vq02Ckzscn; Mon, 15 Jul 2024 12:38:31 +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 46FCcU2s061740; Mon, 15 Jul 2024 12:38:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46FCcUbV061737; Mon, 15 Jul 2024 12:38:30 GMT (envelope-from git) Date: Mon, 15 Jul 2024 12:38:30 GMT Message-Id: <202407151238.46FCcUbV061737@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: fa84eb9cfb7e - stable/13 - sys: Build arm64 per-thread SSP with GCC List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: fa84eb9cfb7e3745d09e6745bfe15f54f2f36b0b Auto-Submitted: auto-generated The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=fa84eb9cfb7e3745d09e6745bfe15f54f2f36b0b commit fa84eb9cfb7e3745d09e6745bfe15f54f2f36b0b Author: Andrew Turner AuthorDate: 2024-05-22 08:20:01 +0000 Commit: Andrew Turner CommitDate: 2024-07-15 12:34:29 +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 3a2f2ba6362d..9ec7d7983480 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